Playwright Development Guide
Table of Contents
- 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
- Vendoring Dependencies — bundle third-party npm packages into playwright-core or playwright
Build
- Assume watch is running and everything is up to date.
- If not, run
npm run build.
Lint
- Run
npm run flintto lint everything before commit.