upload_file
Upload a local file to an element by passing its absolute path and a selector. Choose the locator strategy and wait timeout to complete file picker automation in browser tests.
Instructions
Upload a file by sending its absolute path to an element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Locator strategy | css |
| timeout | No | Wait timeout in seconds | |
| selector | Yes | CSS selector, XPath, or other locator value | |
| file_path | Yes | Absolute path to the file to upload |