Upload files to form elements and file input fields in your test cases
Field Name | Type | Required | Description |
---|---|---|---|
Locator | string | Yes | CSS selector or locator for the file input element |
File | file | Yes | File to upload (selected through browser file dialog) |
<input type="file">
elements or custom file upload componentsinput[type="file"]
)test-document.pdf
)<input type="file">
element, not a wrapper div or button