How To Upload Files In Playwright With JavaScript
Mukesh otwani Mukesh otwani
176K subscribers
5,189 views
0

 Published On Apr 14, 2023

You can upload single files or multiple files in playwright using setInputFiles() method.

Syntax
await page.locator("#file-upload").setInputFiles("./upload/image1.png")

show more

Share/Embed