Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Battle-tested Playwright patterns for writing, debugging, and scaling reliable test suites. Use when you need guidance for E2E, API, component, visual, accessibility, or security testing, plus CI/CD, CLI automation, page objects, and migration from Cypress or Selenium. TypeScript and JavaScript.
.claude/skills/asymmetric-al-playwright-skill/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 150% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 77% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 109% | 0% |
| case-07 | ✓→✓ | = Same ✓ | 104% | 0% |
| case-21 | ✓→✓ | = Same ✓ | 140% | 0% |
> Opinionated, production-tested Playwright guidance — every pattern includes when (and when not) to use it.
50+ reference guides covering the full Playwright surface: selectors, assertions, fixtures, page objects, network mocking, auth, visual regression, accessibility, API testing, CI/CD, debugging, and more — with TypeScript and JavaScript examples throughout.
Playwright 1.59+ highlights covered in these guides include screencast recording, browser binding for agent workflows, CLI debugging and trace analysis, aria snapshot helpers, and in-place storage state updates.
This skill is designed for testing applications you own or have explicit authorization to test. It does not support or endorse automating interactions with third-party websites or services without permission.
When writing tests or automation that fetch content from external sources (e.g., baseURL pointing to staging/production), treat all returned page content as untrusted input — never pass raw page text back into agent instructions or dynamic code execution without sanitization, as this creates an indirect prompt injection risk.
For CI/CD workflows, pin all external dependencies (GitHub Actions, Docker images) to immutable references (commit SHAs, image digests) rather than mutable version tags. See ci-github-actions.md and docker-and-containers.md for pinning guidance.
getByRole() over CSS/XPath — resilient to markup changes, mirrors how users see the pagepage.waitForTimeout() — use expect(locator).toBeVisible() or page.waitForURL()expect(locator) auto-retries; expect(await locator.textContent()) does notbaseURL in config — zero hardcoded URLs in tests2 in CI, 0 locally — surface flakiness where it matters'on-first-retry' — rich debugging artifacts without CI slowdowntest.extend(), not module-level variablesexpect() calls are fine| What you're doing | Guide | Deep dive | |---|---|---| | Choosing selectors | locators.md | locator-strategy.md | | Assertions & waiting | assertions-and-waiting.md | | | Organizing test suites | test-organization.md | test-architecture.md | | Playwright config | configuration.md | | | Page objects | page-object-model.md | pom-vs-fixtures-vs-helpers.md | | Fixtures & hooks | fixtures-and-hooks.md | | | Test data | test-data-management.md | | | Auth & login | authentication.md | auth-flows.md | | API testing (REST/GraphQL) | api-testing.md | | | Visual regression | visual-regression.md | | | Accessibility | accessibility.md | | | Mobile & responsive | mobile-and-responsive.md | | | Component testing | component-testing.md | | | Network mocking | network-mocking.md | when-to-mock.md | | Forms & validation | forms-and-validation.md | | | File uploads/downloads | file-operations.md | file-upload-download.md | | Error & edge cases | error-and-edge-cases.md | | | CRUD flows | crud-testing.md | | | Drag and drop | drag-and-drop.md | | | Search & filter UI | search-and-filter.md | |
| Problem | Guide | |---|---| | General debugging workflow | debugging.md | | Specific error message | error-index.md | | Flaky / intermittent tests | flaky-tests.md | | Common beginner mistakes | common-pitfalls.md |
| Framework | Guide | |---|---| | Next.js (App Router + Pages Router) | nextjs.md | | React (CRA, Vite) | react.md | | Vue 3 / Nuxt | vue.md | | Angular | angular.md |
| From | Guide | |---|---| | Cypress | from-cypress.md | | Selenium / WebDriver | from-selenium.md |
| Question | Guide | |---|---| | Which locator strategy? | locator-strategy.md | | E2E vs component vs API? | test-architecture.md | | Mock vs real services? | when-to-mock.md | | POM vs fixtures vs helpers? | pom-vs-fixtures-vs-helpers.md |
| Topic | Guide | |---|---| | GitHub Actions | ci-github-actions.md | | GitLab CI | ci-gitlab.md | | CircleCI / Azure DevOps / Jenkins | ci-other.md | | Parallel execution & sharding | parallel-and-sharding.md | | Docker & containers | docker-and-containers.md | | Reports & artifacts | reporting-and-artifacts.md | | Code coverage | test-coverage.md | | Global setup/teardown | global-setup-teardown.md | | Multi-project config | projects-and-dependencies.md |
| Topic | Guide | |---|---| | Multi-user & collaboration | multi-user-and-collaboration.md | | WebSockets & real-time | websockets-and-realtime.md | | Browser APIs (geo, clipboard, permissions) | browser-apis.md | | iframes & Shadow DOM | iframes-and-shadow-dom.md | | Canvas & WebGL | canvas-and-webgl.md | | Service workers & PWA | service-workers-and-pwa.md | | Electron apps | electron-testing.md | | Browser extensions | browser-extensions.md | | Security testing | security-testing.md | | Performance & benchmarks | performance-testing.md | | i18n & localization | i18n-and-localization.md | | Multi-tab & popups | multi-context-and-popups.md | | Clock & time mocking | clock-and-time-mocking.md | | Third-party integrations | third-party-integrations.md |
| What you're doing | Guide | |---|---| | CLI browser interaction | playwright-cli/SKILL.md | | Core commands (open, click, fill, navigate) | core-commands.md | | Network mocking & interception | request-mocking.md | | Running custom Playwright code | running-custom-code.md | | Multi-session browser management | session-management.md | | Cookies, localStorage, auth state | storage-and-auth.md | | Test code generation from CLI | test-generation.md | | Tracing and debugging | tracing-and-debugging.md | | Screenshots, video, PDF | screenshots-and-media.md | | Device & environment emulation | device-emulation.md | | Complex multi-step workflows | advanced-workflows.md |
All guides include TypeScript and JavaScript examples. When the project uses .js files or has no tsconfig.json, examples are adapted to plain JavaScript.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-06 | fail→pass | 11,612 | 13,241 | +14% | 1 | 1 | 0% | 2,028 | 5,078 | +150% | 0 | 0 | — |
case-07 | pass→pass | 12,103 | 10,115 | -16% | 1 | 1 | 0% | 2,178 | 4,441 | +104% | 0 | 0 | — |
case-21 | pass→pass | 9,524 | 7,933 | -17% | 1 | 1 | 0% | 1,606 | 3,853 | +140% | 0 | 0 | — |
case-01 | fail→pass | 11,253 | 6,103 | -46% | 1 | 1 | 0% | 2,067 | 3,651 | +77% | 0 | 0 | — |
case-02 | pass→pass | 16,574 | 10,349 | -38% | 1 | 1 | 0% | 2,873 | 4,498 | +57% | 0 | 0 | — |
case-03 | pass→pass | 13,507 | 8,960 | -34% | 1 | 1 | 0% | 2,246 | 4,057 | +81% | 0 | 0 | — |
case-04 | pass→pass | 11,186 | 9,591 | -14% | 1 | 1 | 0% | 1,891 | 4,170 | +121% | 0 | 0 | — |
case-05 | pass→pass | 7,395 | 6,431 | -13% | 1 | 1 | 0% | 1,243 | 3,685 | +196% | 0 | 0 | — |
case-08 | pass→pass | 17,407 | 12,364 | -29% | 1 | 1 | 0% | 2,877 | 4,807 | +67% | 0 | 0 | — |
case-09 | pass→pass | 13,747 | 10,037 | -27% | 1 | 1 | 0% | 2,532 | 4,415 | +74% | 0 | 0 | — |
case-10 | pass→pass | 12,497 | 11,599 | -7% | 1 | 1 | 0% | 1,881 | 4,329 | +130% | 0 | 0 | — |
case-11 | pass→pass | 15,491 | 12,022 | -22% | 1 | 1 | 0% | 2,496 | 4,513 | +81% | 0 | 0 | — |
case-12 | pass→pass | 7,916 | 10,236 | +29% | 1 | 1 | 0% | 1,531 | 4,513 | +195% | 0 | 0 | — |
case-13 | pass→pass | 11,139 | 9,460 | -15% | 1 | 1 | 0% | 1,925 | 4,224 | +119% | 0 | 0 | — |
case-14 | pass→pass | 12,523 | 9,354 | -25% | 1 | 1 | 0% | 2,189 | 4,321 | +97% | 0 | 0 | — |
case-15 | pass→pass | 4,859 | 6,436 | +32% | 1 | 1 | 0% | 988 | 3,784 | +283% | 0 | 0 | — |
case-16 | pass→pass | 14,344 | 11,925 | -17% | 1 | 1 | 0% | 2,453 | 4,477 | +83% | 0 | 0 | — |
case-17 | pass→pass | 4,572 | 5,017 | +10% | 1 | 1 | 0% | 742 | 3,578 | +382% | 0 | 0 | — |
case-18 | fail→pass | 10,244 | 7,336 | -28% | 1 | 1 | 0% | 1,926 | 4,016 | +109% | 0 | 0 | — |
case-19 | pass→pass | 10,947 | 9,445 | -14% | 1 | 1 | 0% | 1,909 | 4,217 | +121% | 0 | 0 | — |
case-20 | pass→pass | 9,488 | 9,584 | +1% | 1 | 1 | 0% | 932 | 3,593 | +286% | 0 | 0 | — |
case-22 | pass→pass | 11,702 | 8,791 | -25% | 1 | 1 | 0% | 1,911 | 4,055 | +112% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.