ios_safari_set_input_files
Set the files on a file-upload input () in Safari on an iOS device, WITHOUT opening the device's file picker. This is the only way to test an upload flow end to end on iOS: tapping an upload control opens a native sheet that automation cannot drive. Provide file content inline, or name a file already on the device (see ios_file_push / ios_upload_targets) to have it read from there. Fires the input and change events afterwards so framework bindings and validation run, then reads the input back and reports the file names and sizes the PAGE actually sees — so a silent no-op can't pass as success. Total content limit 2 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| files | Yes | Files to attach. Pass several only for a multiple-file input | |
| index | No | Which match to use when the selector matches several (0-based, default 0) | |
| pageId | No | CDP target id. Omit to use the page ios_safari_navigate last landed on | |
| selector | Yes | CSS selector for the file input. Must resolve to an <input type="file"> element |