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
325 stars 41 forks source link
browser-automation end-to-end-testing hacktoberfest k6 xk6 xk6-browser

xk6-browser

Browser automation and end-to-end web testing for k6

An extension for k6 adding browser-level APIs with rough Playwright compatibility.

Github release Build status Go Report Card
@k6_io on Twitter Slack channel

Download · Documentation · Community Forum


---


xk6-browser is a k6 extension 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.43.0, xk6-browser is now bundled in k6 as an experimental module, and usable without a separate binary or compilation step!

https://user-images.githubusercontent.com/10811379/220158567-cdef7ddc-96c5-41d9-854f-a25c5f67e4b3.mp4

Special acknowledgment to the authors of Playwright and Puppeteer for their trailblazing work in this area. This project is heavily influenced and in some regards based on the code of those projects.

Goals

See our project roadmap for more details.

Get started

Documentation

Get help

Additional resources

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, refer to our up-to-date API documentation.