You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently exploring the capabilities of k6-browser for browser automation and performance testing. I have a scenario where I need to simulate a user clicking a button that triggers a file download. The file should ideally be downloaded to the local machine where the k6 test is running.
Is this currently possible with k6-browser? If so, could you provide an example or guidance on how to achieve this? If not, is this a feature that could be considered for future development?
Here’s a simplified example of what I’m trying to achieve:
// ...exportdefaultfunction(){constcontext=awaitbrowser.newContext();constpage=context.newPage();page.goto('https://example.com/download-page');page.click('button#download-button');// Wait for the file to be downloaded// How can I verify that the file has been downloaded to the local machine?browser.close();}
Any insights or suggestions would be greatly appreciated!
Thank you in advance for your help.
Best regards
Suggested Solution (optional)
No response
Already existing or connected issues / PRs (optional)
No response
The text was updated successfully, but these errors were encountered:
Feature Description
Hello k6-browser team,
I'm currently exploring the capabilities of k6-browser for browser automation and performance testing. I have a scenario where I need to simulate a user clicking a button that triggers a file download. The file should ideally be downloaded to the local machine where the k6 test is running.
Is this currently possible with k6-browser? If so, could you provide an example or guidance on how to achieve this? If not, is this a feature that could be considered for future development?
Here’s a simplified example of what I’m trying to achieve:
Any insights or suggestions would be greatly appreciated!
Thank you in advance for your help.
Best regards
Suggested Solution (optional)
No response
Already existing or connected issues / PRs (optional)
No response
The text was updated successfully, but these errors were encountered: