xk6-browser
xk6-browser copied to clipboard
Implement `FileChooser` handling
Add support for FileChooser
, handling of file uploads in the browser. This should be made compatible with both ArrayBuffer
based data as well as http.file(...)
.
Relevant links:
- Playwright docs: https://playwright.dev/docs/api/class-filechooser and https://playwright.dev/docs/api/class-page#page-event-file-chooser
hi k6 team,
would be glad to have this feature to support 'file upload' for .csv file, etc. and/or through [page.setInputFiles(selector, files[, options])]
(https://playwright.dev/docs/api/class-page#page-set-input-files) method.
Sample scenario: User uploads file as a mandatory field Given user must upload a file to proceed to next step. When he clicks on 'choose file' button and selects a file. Then the file should be successfully upload And user should be able to proceed to next step
looking forward on the implementation if time permits, thanks a lot.
Thanks, @marksangual; we will consider this depending on our priorities.
Thanks a lot @inancgumus for your kind consideration.
+1