百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
X

xk6-browser

> DevOps
开源

浏览器模块通过Chrome Devtools协议添加了对浏览器自动化和端到端网络测试的支持到k6.

358 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

浏览器模块通过Chrome Devtools协议添加了对浏览器自动化和端到端网络测试的支持到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.

Goals

  • Bring browser automation to the k6 testing platform while supporting core k6 features like VU executors, scenarios, metrics, checks, thresholds, logging, DNS remapping, IP blocklists, etc.
  • Test stability as the top priority by supporting non-flaky selectors combined with auto-waiting for actions just like Playwright.
  • Aim for rough API compatibility with Playwright. The reason for this is twofold: first, we don't want users to have to learn a completely new API just to use xk6-browser, and second, it opens up the possibility of using the Playwright RPC server as an optional backend for the k6 browser module should we decide to support that in the future.
  • Support for Chromium-compatible browsers first, and eventually Firefox and WebKit-based browsers.

Please take a look at our project roadmap for more details.

Get started

  • Getting Started
  • Running xk6-browser
  • Browser Metrics
  • Selecting Elements

Documentation

  • Releases
  • API Documentation - This documents how to use our API and its current state with xk6-browser.

Get help

  • If you're having issues installing or running xk6-browser, refer to TROUBLESHOOTING.
  • To get help with usage, report bugs, suggest features, and discuss xk6-browser with other users, see SUPPORT.md.
  • Community discussion happens at the xk6-browser forum.

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, please take a look at our up-to-date API documentation.

  • How to add browser-level APIs for web performance metrics - This post explains how to get started with k6 browser to interact with browsers and collect web performance metrics as part of your Grafana k6 tests.
  • Using k6 browser - Get started with the k6 browser module.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Gobrowser-automationcdpchromedevtoolsprotocolend-to-end-testing

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理