Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/k6/latest/javascript-api/k6-browser/chromium.md, or by sending Accept: text/markdown to https://grafana.com/docs/k6/latest/javascript-api/k6-browser/chromium/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Chromium
chromium is a browser type that you can import from the browser module ('k6/browser'). It lets your test attach to a Chromium-based browser that is already running, instead of one that k6 launches and manages for you.
Use it when the browser lifecycle isn’t k6’s to manage, for example when the browser runs in a separate container or when a third-party provider hands you a browser session. Everything else stays the same: the returned browser exposes the same
browser module API as a k6-managed
browser.
| Method | Description |
|---|---|
| connectOverCDP(wsEndpoint) | Attaches to an existing Chromium-based browser over the Chrome DevTools Protocol (CDP) and returns the Browser. |
Was this page helpful?
Related resources from Grafana Labs

