file_upload
Upload files to a file input element using a11y-tree ref for visible inputs or CSS selector for hidden inputs. Provide absolute file path(s) for single or multiple files.
Instructions
Upload file(s) to a file input element. Provide ref or CSS selector to identify the , and absolute path(s) to the file(s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A11y-Tree element ref (e.g. 'e8') — preferred when input is visible in view_page | |
| selector | No | CSS selector (e.g. 'input[type=file]') — use this for hidden file inputs (display:none, off-screen). Many React/Vue apps render a visible custom button that triggers a hidden <input type=file>; the hidden input is NOT in the a11y-tree, so ref won't find it. Pass the selector instead. | |
| path | Yes | Absolute file path(s) to upload. String for single file, array for multiple files. |