xk6-browser icon indicating copy to clipboard operation
xk6-browser copied to clipboard

Implement `FileChooser` handling

Open robingustafsson opened this issue 3 years ago • 4 comments

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

robingustafsson avatar Nov 12 '21 08:11 robingustafsson

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.

marksangual avatar Sep 16 '22 08:09 marksangual

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

inancgumus avatar Sep 16 '22 09:09 inancgumus

Thanks a lot @inancgumus for your kind consideration.

marksangual avatar Sep 19 '22 00:09 marksangual

+1

erashdan avatar Feb 18 '24 12:02 erashdan