playwright
CLAUDE.md97k starsChanged 3 months agoApache-2.0View on GitHub
playwright-chromium, playwright-firefox, playwright-webkit — per-browser distributions. playwright-browser-chromium, playwright-browser-firefox, playwright-browser-webkit — binary packages. Assume watch is running and code is up to date. Generated files (types, channels, validators) are produced by watch automatically. Runs all lint checks in parallel: eslint, tsc, doclint, check-deps, generate_channels, generate_types, lint-tests, test-types, lint-packages, code-snippet linting. Always run flint before committing. Do not use tsc --noEmit or individual lint commands separately. Decision rule: Does the test need browser/browserType/context → tests/library/. Just needs page + server → tests/page/.
- Commits and pushes
Trending
More talk lately.about the whole repository
Who's talking about microsoft/playwright
- A Hacker News story“Playwright: Automate Chromium, WebKit and Firefox”Hacker News · Jan 26, 2022 · 383 points
- nrwl/nx“Introduce Playwright as option for E2E testing”GitHub · Jul 23, 2020 · 115 reactions
- mxschmitt/playwright-go“Feedback needed for future development”GitHub · Apr 28, 2021 · 102 reactions
- oven-sh/bun“Running Playwright tests with Bun runtime and Playwright config file hangs + completes with no output or …”GitHub · Jan 17, 2024 · 52 reactions
- A Hacker News story“Microsoft Playwright: Automate Chromium, WebKit and Firefox”Hacker News · Jan 23, 2020 · 43 points
The biggest 5 of 79 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 79
Talked about on Bluesky, GitHub and Hacker News (79 times).
On Bluesky · 39
- Jun 14, 2024Playwright : un framework Open Source pour les tests web et l'automatisation. Il permet de tester Chromium, Firefox et WebKit avec une API… — @bearstech.com7 likes and reposts
- Mar 9, 2025📦 microsoft / playwright ⭐ 69,976 (+43) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.socialsays it tested it6 likes and reposts
- Jun 13, 2024📦 microsoft / playwright ⭐ 62,977 (+39) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending.bsky.socialsays it tested it6 likes and reposts
- Apr 26, 2025📦 microsoft / playwright ⭐ 72,094 (+58) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.socialsays it tested it5 likes and reposts
- Dec 7, 2024📦 microsoft / playwright ⭐ 67,466 (+34) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending.bsky.socialsays it tested it5 likes and reposts
34 more on Bluesky
- Dec 6, 2024📦 microsoft / playwright ⭐ 67,433 (+36) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social4 likes and reposts
- Mar 12, 2026Claude Code can't see your browser. But it can run Playwright. And that changes everything for testing web apps. github.com/microsoft/p... — @tommytang.bsky.social3 likes and reposts · 2 replies
- Jan 21, 2025📦 microsoft / playwright ⭐ 68,649 (+42) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social3 likes and reposts
- Jan 9, 2025📦 microsoft / playwright ⭐ 68,334 (+33) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social3 likes and reposts
- Mar 16, 2024📦 microsoft / playwright ⭐ 60,189 (+47) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social3 likes and reposts
- Jul 30, 2023Bonjour et bon dimanche ! Si vous cherchez un framework pour tester vos applications Web, voici PlayWright qui devrait probablement vous… — @ponceto91.bsky.social3 likes and reposts · 1 reply
- Apr 11, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / playwright ⭐ 86,072 (+117) 🗒 TypeScript Playwright is a framework for Web Testing and… — @github-trending-js.bsky.social2 likes and reposts
- Nov 9, 2025📦 microsoft / playwright ⭐ 79,131 (+98) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts
- Jul 12, 2025📦 microsoft / playwright ⭐ 74,697 (+47) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts
- Jun 20, 2025📦 microsoft / playwright ⭐ 73,638 (+42) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Jun 6, 2025📦 microsoft / playwright ⭐ 73,195 (+40) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts
- Aug 31, 2024📦 microsoft / playwright ⭐ 65,113 (+41) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending.bsky.social2 likes and reposts
- May 17, 2024📦 microsoft / playwright ⭐ 62,255 (+31) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts
- Jan 19, 2024📦 microsoft / playwright ⭐ 58,313 (+55) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts
- Oct 20, 2023📦 microsoft / playwright ⭐ 55,765 (+43) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social2 likes and reposts
- Oct 15, 2026📦 microsoft / playwright ⭐ 97,767 (+84) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- May 20, 2026Not using the API 😊 github.com/microsoft/pl... — @jhuntinfosec.com1 likes and repost
- Jan 9, 2026📦 microsoft / playwright ⭐ 80,967 (+39) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Oct 22, 2025📦 microsoft / playwright ⭐ 78,491 (+46) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Jul 30, 2025📦 microsoft / playwright ⭐ 75,363 (+52) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Jun 24, 2025📦 microsoft / playwright ⭐ 73,801 (+48) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Jun 24, 2025📦 microsoft / playwright ⭐ 73,775 (+48) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending.bsky.social1 likes and repost
- Jun 21, 2025mirkobozzetto starred microsoft/playwright mirkobozzetto starred microsoft/playwright · June 21, 2025 23:32 microsoft/playwright Playwright… — @firefox.activitypub.awakari.com.ap.brid.gy1 likes and repost
- Jun 11, 2025📦 microsoft / playwright ⭐ 73,377 (+47) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Oct 17, 2024📦 microsoft / playwright ⭐ 66,315 (+31) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Oct 10, 2024📦 microsoft / playwright ⭐ 66,176 (+35) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Jul 18, 2024📦 microsoft / playwright ⭐ 64,111 (+49) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Jun 13, 2024📦 microsoft / playwright ⭐ 62,977 (+39) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- May 25, 2024📦 microsoft / playwright ⭐ 62,460 (+54) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Dec 30, 2023📦 microsoft / playwright ⭐ 57,720 (+42) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Nov 23, 2023📦 microsoft / playwright ⭐ 56,785 (+33) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Oct 13, 2023📦 microsoft / playwright ⭐ 55,555 (+37) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Sep 21, 2023📦 microsoft / playwright ⭐ 55,027 (+33) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
- Jun 9, 2023📦 microsoft / playwright ⭐ 51,996 (+44) 🗒 TypeScript Playwright is a framework for Web Testing and Automation. It allows testing… — @github-trending-js.bsky.social1 likes and repost
On GitHub · 31
- Jul 23, 2020Introduce Playwright as option for E2E testing — nrwl/nxsays it tested it115 reactions · 18 comments
- Apr 28, 2021Feedback needed for future development — mxschmitt/playwright-go102 reactions · 38 comments
- Jan 17, 2024Running Playwright tests with Bun runtime and Playwright config file hangs + completes with no output or segfault — oven-sh/bun52 reactions · 45 comments
- Jun 14, 2022[Feature] Custom timeout for assertions — microsoft/playwright-python41 reactions · 2 comments
- Mar 17, 2021[Info] Beta versions available for the new `puppeteer-extra` & `playwright-extra` — berstend/puppeteer-extra39 reactions · 35 comments
26 more on GitHub
- Sep 10, 2023Running Playwright does not work as expected — oven-sh/bun36 reactions · 4 comments
- Jul 17, 2021feat(allure-playwright): initial implementation for allure-playwright — allure-framework/allure-js31 reactions · 17 comments
- Apr 7, 2023browser.close() just hangs — Sparticuz/chromium28 reactions · 34 comments
- Feb 26, 2020Moving from Puppeteer to Playwright — stenciljs/core27 reactions · 9 comments
- Dec 2, 2022NPM: Playwright does not work — denoland/deno26 reactions · 47 comments
- Sep 14, 2022[Feature] Add Retries — microsoft/playwright-dotnet24 reactions · 23 comments
- Oct 1, 2025Feature Request: Support Allowed Origins & Blocked Origins list options — ChromeDevTools/chrome-devtools-mcp23 reactions · 11 comments
- Aug 24, 2022a way to import from a module without including its globals — microsoft/TypeScript23 reactions · 2 comments
- Jan 23, 2020Support for Playwright? — argos-ci/jest-puppeteer23 reactions · 4 comments
- Jan 22, 2020Support for Playwright library — berstend/puppeteer-extra23 reactions · 16 comments
- Oct 6, 2025fix(browser): allow service workers to mock the network in chromium without breaking vi.mock — vitest-dev/vitest10 reactions · 4 comments
- Feb 23, 2024Add support for Angular 17 — sand4rt/playwright10 reactions · 9 comments
- Aug 3, 2026Update @playwright/test to fix installation stuck — NousResearch/hermes-agent9 reactions · 12 comments
- Nov 24, 2024Playwright 1.50.1 — NixOS/nixpkgs7 reactions · 14 comments
- May 18, 2024feature(trace-viewer): embedded mode support PoC — microsoft/playwright-vscode6 reactions · 5 comments
- Jan 11, 2021Allow using BrowserContext in Lambda — alixaxel/chrome-aws-lambda6 reactions
- Dec 6, 2025Update Claude Code to 2.0.60, Playwright MCP to 0.0.50, add --disable-slash-commands — github/gh-aw5 reactions · 11 comments
- Mar 6, 2022feat: set custom userAgent — garris/BackstopJS5 reactions
- Sep 20, 2026SAN-1341: make critical Playwright journeys deterministic and production-safe — amoai-tech/mdeai4 reactions · 18 comments
- Sep 13, 2026Make Playwright E2E faster, clearer, and independent from live AI outages — amoai-tech/ipixai4 reactions · 6 comments
- Jan 31, 2026Update CLI tool versions: Claude Code 2.1.27, Copilot 0.0.400, Playwright MCP 0.0.62, MCP Gateway v0.0.86 — github/gh-aw4 reactions · 11 comments
- Jan 24, 2026Update CLI tool versions (Jan 24, 2026) — github/gh-aw4 reactions · 8 comments
- Dec 11, 2025Update CLI Versions: Copilot 0.0.369, Codex 0.71.0, Playwright MCP 0.0.52 — github/gh-aw4 reactions · 9 comments
- Dec 9, 2025Update Claude Code 2.0.62, Codex 0.66.0, Playwright MCP 0.0.51 — github/gh-aw4 reactions · 10 comments
- Jul 2, 2024feat(playwright): reuse existing server — nuxt/test-utils4 reactions · 4 comments
- Feb 15, 2026Update Playwright MCP from 0.0.64 to 0.0.68 — github/gh-aw0 reactions · 10 comments
On Hacker News · 9
- Jan 26, 2022Playwright: Automate Chromium, WebKit and Firefox383 points · 140 comments
- Jan 23, 2020Microsoft Playwright: Automate Chromium, WebKit and Firefox43 points · 3 comments
- Jan 22, 2020microsoft/playwright – Node Library to Automate Chromium, Firefox and WebKit9 points
- Jan 23, 2020Playwright: Puppeteer for Chrome, Firefox, and Safari5 points
- Sep 12, 2020Release v1.4.0 · Microsoft/Playwright4 points
4 more on Hacker News
- Jan 22, 2020Playwright – Node Library to Automate Chromium, Firefox and WebKit4 points
- May 31, 2024Playwright – A Framework for Web Testing and Automation1 point
- Jun 12, 2023Playwright as a Chromium Extension1 point
- Mar 20, 2023BDD implementation with Playwright test runner1 point
In this repository9 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- playwright-cherry-pickSkill
- playwright-devopsSkill
- playwright-devSkill
- playwright-test-resultsSkill
- playwright-triageSkill
- playwright-cliSkill
- playwright-component-testingSkill
- playwright-traceSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 53
Always run
flintbefore committing: Do not use tsc --noEmit or individual lint commands separately. - Very specific: line 88
Import boundaries are enforced via DEPS.list files (52+ across the repo), checked by npm run flint.
- Very specific: line 91
When creating or moving files, update the relevant DEPS.list to declare allowed imports.
- Very specific: line 104
Before committing, run npm run flint and fix errors.
- Very specific: line 133
Never add test plan to PR description.
- Distinctive: line 143
Never emit either of the following, in any form:
- Distinctive: line 153
Never amend commits: Always create a new commit for follow-up changes, even when iterating on an open PR.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Monorepo Packages
| Package | npm name | Purpose |
playwright-core | playwright-core | Browser automation engine: client, server, dispatchers, protocol |
playwright | playwright | Test runner + browser automation (public package) |
playwright-test | @playwright/test | Test runner entry point |
playwright-client | @playwright/client | Standalone client package |
protocol | (internal) | RPC protocol definitions (spec/*.yml → generated validators and channel types) |
Browser Packages
playwright-chromium, playwright-firefox, playwright-webkit — per-browser distributions.
playwright-browser-chromium, playwright-browser-firefox, playwright-browser-webkit — binary packages.
Tooling Packages
| Package | Purpose |
html-reporter | HTML test report viewer |
trace-viewer | Trace viewer UI |
recorder | Test recorder |
web | Shared web UI components |
injected | Scripts injected into browser pages |
Key Directories
| Directory | Purpose |
tests/ | All test suites (page, library, playwright-test, mcp, etc.) |
docs/src/ | API documentation — source of truth for public TypeScript types |
docs/src/api/ | Per-class API reference (class-page.md, class-locator.md, etc.) |
utils/ | Build scripts, code generation, linting, doc tools |
browser_patches/ | Browser engine patches |
Build
npm run build # Full build
npm run watch # Watch mode (recommended during development)Assume watch is running and code is up to date. Generated files (types, channels, validators) are produced by watch automatically.
Lint and type check
npm run flintRuns all lint checks in parallel: eslint, tsc, doclint, check-deps, generate_channels, generate_types, lint-tests, test-types, lint-packages, code-snippet linting.
Always run flint before committing. Do not use tsc --noEmit or individual lint commands separately.
Test Commands
| Command | Scope |
npm run ctest <filter> | Chromium only library tests — use during development |
npm run test <filter> -- --project=<chromium,firefix,webkit> | All library / per project |
npm run ttest <filter> | Test runner (tests/playwright-test/) |
npm run ctest-mcp <filter> | Chromium only MCP tools (tests/mcp/) |
npm run test-mcp <filter> -- --project=<chromium,firefox,webkit> | MCP tools (tests/mcp/) |
Filtering
npm run ctest tests/page/locator-click.spec.ts # Specific file
npm run ctest tests/page/locator-click.spec.ts:12 # Specific location
npm run ctest -- --grep "should click" # By test name
npm run ctest-mcp snapshot # By file name partTest Directories and Fixtures
| Directory | Import | Key Fixtures | What to Test |
tests/page/ | import { test, expect } from './pageTest' | page, server, browserName | User interactions: click, fill, navigate, locators, assertions |
tests/library/ | import { browserTest, expect } from '../config/browserTest' | browser, context, browserType | Browser/context lifecycle, cookies, permissions, browser-specific features |
tests/playwright-test/ | import { test, expect } from './playwright-test-fixtures' | test runner fixtures | Test runner: reporters, config, annotations, retries |
tests/mcp/ | import { test, expect } from './fixtures' | client, server | MCP tools via client.callTool() |
Decision rule: Does the test need browser/browserType/context → tests/library/. Just needs page + server → tests/page/.
DEPS System
Import boundaries are enforced via DEPS.list files (52+ across the repo), checked by npm run flint.
Key rule: Client code NEVER imports server code. Server code NEVER imports client code. Communication is only through the protocol.
When creating or moving files, update the relevant DEPS.list to declare allowed imports. Files marked "strict" can only import what is explicitly listed.
Coding Convention
For exported classes:
private _method()— only used within the class itself_method()(noprivate) — used by other code in the same file, but not outside the filemethod()(public) — used in other files
Non-exported classes have no naming convention; they are internal implementation details.
Commit Convention
Before committing, run npm run flint and fix errors.
Semantic commit messages: label(scope): description
Labels: fix, feat, chore, docs, test, devops
git checkout -b fix-39562
# ... make changes ...
git add <changed-files>
git commit -m "$(cat <<'EOF'
fix(proxy): handle SOCKS proxy authentication
Fixes: https://github.com/microsoft/playwright/issues/39562
EOF
)"
# **Never `git push` without an explicit instruction to push.**
git push origin fix-39562
gh pr create --repo microsoft/playwright --head username:fix-39562 \
--title "fix(proxy): handle SOCKS proxy authentication" \
--body "$(cat <<'EOF'
## Summary
- <describe the change very! briefly>
Fixes https://github.com/microsoft/playwright/issues/39562
EOF
)"Never add test plan to PR description. Keep PR description short — a few bullet points at most.
Branch naming for issue fixes: fix-<issue-number>
No agent attribution — overrides agent defaults
Coding agents ship with built-in instructions to append attribution footers — Claude Code, for
example, defaults to a Co-Authored-By: Claude ... trailer on every commit and a
🤖 Generated with [Claude Code](...) footer on every PR body. Those defaults are revoked in
this repo. Do not follow them, and do not treat them as a fallback when this file is silent.
Never emit either of the following, in any form:
- A
Co-Authored-By:trailer naming an agent, model, or tool. - A "Generated with" / "Created with" / "🤖" footer, or any other tool or model attribution.
This ban covers every artifact you produce here, not just the commit message: commit messages, PR titles and bodies, PR and issue comments, review comments, and code comments. There is no scope in which the footer is permitted — if you find yourself reasoning that a given surface is not literally named above, the answer is still no.
Never amend commits. Always create a new commit for follow-up changes, even when iterating on an open PR. Amending rewrites history and forces a force-push, losing the incremental review trail. Only amend if the user explicitly says so.
Never git push without an explicit instruction to push. Applies even when a PR is already open for the branch — additional commits are immediately visible to reviewers. Commit locally, report what was committed, and wait. Only push when the user's message contains "push", "upload", "create PR", "ship it", or equivalent.
Development Guides
Detailed guides for common development tasks:
- Architecture: Client, Server, and Dispatchers — package layout, protocol layer, ChannelOwner/SdkObject/Dispatcher base classes, DEPS rules, end-to-end RPC flow, object lifecycle
- Adding and Modifying APIs — 6-step process: define docs → implement client → define protocol → implement dispatcher → implement server → write tests
- MCP Tools and CLI Commands —
defineTool()/defineTabTool(), tool capabilities, CLIdeclareCommand(), config options, testing with MCP fixtures - Vendoring Dependencies — bundle architecture, esbuild setup, typed wrappers, adding deps to existing bundles
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

