grafana / xk6-browser

k6 extension that adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol
https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/
GNU Affero General Public License v3.0
337 stars 42 forks source link

Implement `FileChooser` handling #99

Open robingustafsson opened 2 years ago

robingustafsson commented 2 years ago

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:

marksangual commented 1 year ago

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.

inancgumus commented 1 year ago

Thanks, @marksangual; we will consider this depending on our priorities.

marksangual commented 1 year ago

Thanks a lot @inancgumus for your kind consideration.

erashdan commented 6 months ago

+1