browser_file_upload
Set files on a file input as if a user picked them, triggering change handlers without opening a dialog. Use this to test uploads programmatically.
Instructions
Set the files of an as picked files land: change handlers run, no dialog opens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. 12 | |
| text | No | Visible text or label of the element, instead of ref | |
| paths | Yes | Files in the working directory | |
| selector | No | CSS selector (first match), instead of ref | |
| snapshot | No | Also return the page snapshot after the action |