page_upload
Attach local files to any file input using a snapshot reference or CSS selector. Set absolute paths directly on the element and receive the network, console, and URL changes caused by the upload.
Instructions
Attach file(s) to a file (by ref from page_snapshot, or CSS selector) — the equivalent of choosing files in the OS picker, but set directly on the element. Give ABSOLUTE paths readable by this process. Reports the network/console/url delta any resulting upload caused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| files | Yes | absolute path(s) to the file(s) to attach | |
| waitMs | No | settle time after attaching before reporting the delta (default 700ms) | |
| selector | No | ||
| sessionId | No |