Issue while building xk6 with xk6-browser extension

Hi @ankur ,
I’m facing an issue while executing the following command in the CLI:
xk6 build --output xk6-browser.exe --with GitHub - grafana/xk6-browser: The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.

The build fails with the following error:
2025/06/09 23:44:56 ERROR build error resolving dependency: executing go command: exit status 1

Could you please help me resolve this?
Thanks in advance!

Hi @aabolipatil,

Can you explain exactly what you’re trying to do. It looks like you’re trying to build k6 with the archived xk6-browser extension using xk6, is that correct? Are you trying to add any other extensions?

k6 now comes with the browser module built in, so you no longer need to manually add the browser module to k6 with xk6. All you need to do is download the latest version of k6 from here, and then start creating your test scripts as normal.

Best,
Ankur

Hi @ankur ,
Thank you for your assistance.

Could you please let me know if the browser version of K6 is supported on the Windows operating system?

Best Regards,
Aaboli

Hi @aabolipatil,

Yes it is. Have you tried it? Have you ran into any issues running k6 v1.0.0 on Windows?

Best,
Ankur

Hi @ankur ,
I am getting this error while execute the script
ERRO[0000] GoError: k6/experimental/browser has been graduated, please use k6/browser instead.Please update your imports to use k6/browser instead of k6/experimental/browser, For more information, see the migration guide at the link: Migrating browser scripts to k6 v0.52 | Grafana k6 documentation hint=“script exception”

i have installed k6.exe v1.0.0 (commit/41b4984b75, go1.24.2, windows/amd64) version of k6

Thanks in advance.

Best Regards,
Aaboli

Hi @aabolipatil,

We have deprecated the experimental version of browser (import k6/experimental/browser) now and we strongly recommend that you migrate your script(s) to work with import k6/browser if you want to work with the latest version of the browser module with the latest fixes and features.

As well as changing the import path, it will also require some additional work on adding the await keyword on most of the k6 browser APIs. More details can be found on this docs page: Migrating browser scripts to k6 v0.52 | Grafana k6 documentation.

Best,
Ankur

Hi @ankur,

I hope you’re doing well.

Thank you for your assistance. I’m now able to write and execute test scripts for UI load testing using the K6 browser.

I have a new query regarding reporting for K6 browser tests.
Does Grafana provide any reporting solution for K6 browser tests, or are there any third-party plugins that can be integrated with K6 browser for reporting?

Thank you in advance!