Playwright
Direct Upload
For Playwright, you can upload files directly from your local path. After creating and connecting to a session, follow these steps:- Make sure your file is available where you’re running your Playwright code
- Use the
setInputFiles
method to upload the file - The file path should be relative to your current working directory
Playwright
Large Files Upload
For larger files, you can use the Session Uploads API. Follow this example:Session Uploads API
Learn more about the available params and response fields