File upload and download
Upload
Locator::set_input_files works on any <input type="file">. Pass an
absolute path or a list.
Multiple files:
In-memory upload (no file on disk)
Capture a download
Trigger the download, then await the download event:
Or save to a known path:
File chooser events
For non-<input> triggers (a custom button that opens a native chooser
via JS):
TypeScript
Backend notes
For BiDi, listen for the framenavigated event to a download URL and
fetch with request instead.