orke browser page.upload
Pass files to an upload button or file input.
When to use it
Pass files to an upload button or file input.
Usage
Syntax · [ ] marks optional arguments
orke browser page.upload [--element <string>] [--trigger <string>] --files <stringlist>Options
| Options | Required? | Value and description |
|---|---|---|
--element | Optional | Element reference from the latest snapshot or current run observation. |
--trigger | Optional | Reference to the button, label, or input that opens the file picker. |
--files | Required | Path to an upload file. Repeat the option for multiple files. Repeat the option for multiple values. |
Common management options and errors →
Example
Terminal
orke browser page.upload --page "page_ID" --trigger e12 --files ./report.txt --jsonReplace the example IDs, folders, references, and revision with values from actual queries. Element references such as e7 must also come from the latest observation.
What to check in the result
Read both ok and error, and check the actual IDs, states, and partial results in data.
Behavior and states to watch
- Use --page to specify the target. If the target is ambiguous, select an ID from tab.list.
- Use either element or trigger. Only files inside the workspace can be passed: up to 20 files, 50 MiB per file, and 200 MiB total.