Upload Local File
browser_upload_fileProvide local files to a web page file input during authorized tests by specifying an exact CSS selector and local file paths.
Instructions
Use when a full-profile authorized test explicitly requires providing local files to a page file input. Preconditions: acknowledgeFileAccess: true, an exact selector, and intended local paths are required. Next: continue the upload flow and verify the resulting request or UI state. Sensitivity: this sends local file contents to the target site and can expose private data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| selector | Yes | ||
| timeoutMs | No | ||
| acknowledgeFileAccess | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |