Advanced
upload
Upload a file to a file input element using DOM.setFileInputFiles.
Usage
$ cdpilot upload <selector> <file-path>Arguments
| Name | Required | Description |
|---|---|---|
selector | required | CSS selector of the file input |
file-path | required | Path to the file to upload |
Examples
Upload a file to a file input
$ npx cdpilot upload "input[type=file]" ./photo.jpg