Playwright 功能开发指南
playwright-dev
讲解如何开发 Playwright——添加 API、MCP 工具、CLI 命令以及供应商(vendor)依赖。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 10w
- Forks
- 6.9k
01 前言 Front Matter
- name
- playwright-dev
- description
- Explains how to develop Playwright - add APIs, MCP tools, CLI commands, and vendor dependencies.
02 资源文件 15
- 参考文档api.md10.3 KB
- 参考文档bisect-published-versions.md4.0 KB
- 参考文档dashboard.md1.2 KB
- 参考文档library.md17.6 KB
- 参考文档steps-e/step-e-01-discovery.md7.8 KB
- 参考文档steps-e/step-e-01b-legacy-conversion.md6.4 KB
- 参考文档steps-e/step-e-02-review.md7.5 KB
- 参考文档steps-e/step-e-03-edit.md7.2 KB
- 参考文档steps-e/step-e-04-complete.md5.0 KB
- 参考文档tools.md17.3 KB
- 参考文档trace_system_guide.md24.5 KB
- 参考文档vendor.md11.1 KB
- 参考文档webkit-safari-version.md908 B
- 参考文档webview.md6.6 KB
- 参考文档workflow.md2.8 KB
03 SKILL.md 正文
Playwright Development Guide
See AGENTS.md for monorepo structure, build/test/lint commands, and coding conventions.
Detailed Guides
- Library Architecture — client/server/dispatcher structure, protocol layer, DEPS rules
- Adding and Modifying APIs — define API docs, implement client/server, add tests
- MCP Tools and CLI Commands — add MCP tools, CLI commands, config options
- Vendor Dependencies & Bundling — utilsBundle, coreBundle, babelBundle; adding vendored npm packages; DEPS.list;
check_deps - Updating WebKit Safari Version — update the Safari version string in the WebKit user-agent
- WebView (iOS Safari) Backend —
webkit/webview/against stock Mobile Safari; provisional-target pause/resume; what's upstream vs Playwright patches; local + CI test setup - Bisecting Across Published Versions — reproduce regressions side-by-side from npm and diff
node_modules/playwright/lib/between versions - Dashboard - the UI powering the "playwright cli show" command, and how to work on it
04 同仓库更多 Skills
Playwright 追踪文件检查
playwright-trace
从命令行检查 Playwright trace 文件——列出操作、查看请求、控制台、错误、快照和屏幕截图。
Playwright 组件测试搭建
playwright-component-testing
使用 story 画廊通过 Playwright 搭建组件测试——基于内置的 mount fixture 生成 stories 和画廊开发页面,无需专门的组件测试运行时。在需要使用 Playwright 隔离测试 React 或 Vue 组件,或从 @playwright/experimental-ct-react / -vue 迁移时使用。
Playwright 浏览器自动化
playwright-cli
自动化浏览器交互、测试网页并处理 Playwright 测试。
Playwright 测试结果查询
playwright-test-results
从聚合的 DuckDB 数据库中查询 Playwright CI 测试结果。无需在 GitHub 构建产物中逐一翻找,即可回答有关不稳定测试(flaky tests)、失败率、缓慢测试以及每次运行/SHA/PR 结果的问题。
Playwright 发布说明撰写
playwright-release-notes
为 Playwright 版本发布撰写发布说明——包括 docs/src/release-notes-js.md 中的 Node.js 说明,以及 Python、Java 和 .NET 的翻译版本,还有每种语言版本的 GitHub markdown 文档。当用户要求撰写、翻译或发布发布说明时使用。
Playwright CI 与发布运维
playwright-devops
Playwright 的 DevOps 工作流——CI 失败分析、工作流调试和发布操作。