The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
The browser module adds support for browser automation and end-to-end web testing via the Chrome Devtools Protocol to k6.
[!WARNING] Starting from k6 version v0.56, this codebase has been merged and is now part of the main k6 repository. Please contribute and open issues there. This repository is no longer maintained.
Browser automation and end-to-end web testing for k6
A module for k6 adding browser-level APIs with rough Playwright compatibility.
Download ·
Documentation ·
Community Forum ·
Public Roadmap ·k6-browser is a k6 module that supports browser automation through the Chrome Devtools Protocol (CDP). It adds browser-level APIs to interact with browsers and collect frontend performance metrics as part of your k6 tests.
As of k6 version 0.52.0, k6-browser is now bundled in k6 as a core module and usable without a separate binary or compilation step!
Special acknowledgment to the authors of Playwright and Puppeteer for their trailblazing work in this area.
Please take a look at our project roadmap for more details.
To find out more about xk6-browser or browser testing in general, check out the following links.
Note: Since our API is still transitioning, some of the code snippets from the links below might be inaccurate, though the concepts should still be correct. For the latest, please take a look at our up-to-date API documentation.
No open issues yet, or sync has not completed.