playwright-skill
This skill teaches you how to build robust end-to-end tests using Playwright's powerful browser automation capabilities. You'll explore testing patterns, debugging techniques, and strategies for creating maintainable test suites that catch real-world issues. Perfect for developers looking to strengthen their QA automation toolkit.
playwright-skill teaches you to write reliable end-to-end tests by following proven testing patterns and maintainability strategies. Key best practices include using page object models to organize your test code, leveraging Playwright's built-in locators for stable element selection, implementing proper waits and timeouts, and structuring tests with clear arrange-act-assert patterns. The skill emphasizes creating maintainable test suites that catch real-world issues while minimizing flakiness through proper synchronization and error handling.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-26
playwright-skill teaches you to write reliable end-to-end tests by following proven testing patterns and maintainability strategies. Key best practices include using page object models to organize your test code, leveraging Playwright's built-in locators for stable element selection, implementing proper waits and timeouts, and structuring tests with clear arrange-act-assert patterns. The skill emphasizes creating maintainable test suites that catch real-world issues while minimizing flakiness through proper synchronization and error handling.
Use it when
- playwright-skill covers the complete setup process for integrating Playwright into your CI/CD workflows.
- playwright-skill provides direct comparison and migration strategies for developers transitioning from Selenium.
Verify before relying
Read SKILL.md below before installing (60 files). Open directory: indexed for reading, not audited.
Install
zebbern/claude-code-guide/playwright · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What are the best practices for writing Playwright tests?
playwright-skill teaches you to write reliable end-to-end tests by following proven testing patterns and maintainability strategies. Key best practices include using page object models to organize your test code, leveraging Playwright's built-in locators for stable element selection, implementing proper waits and timeouts, and structuring tests with clear arrange-act-assert patterns. The skill emphasizes creating maintainable test suites that catch real-world issues while minimizing flakiness through proper synchronization and error handling.
How do you set up Playwright in CI/CD pipelines and configure for different environments?
playwright-skill covers the complete setup process for integrating Playwright into your CI/CD workflows, including GitHub Actions configuration. You'll learn how to configure Playwright for different environments (development, staging, production), manage environment-specific variables, run tests in parallel across multiple browsers, and optimize test execution for CI runners. The skill provides practical guidance on containerization, artifact management, and strategies for reliable test execution in automated pipelines.
What does playwright-skill teach about migrating from Selenium to Playwright with guidance and examples?
playwright-skill provides direct comparison and migration strategies for developers transitioning from Selenium. You'll understand the key architectural differences between Selenium and Playwright, learn how to translate Selenium locators and commands to Playwright equivalents, and discover Playwright's advantages like better synchronization, faster execution, and improved debugging capabilities. The skill includes practical examples showing side-by-side code comparisons to accelerate your migration journey.
How can you debug flaky tests and troubleshoot common Playwright errors?
playwright-skill equips you with comprehensive debugging techniques to identify and fix unreliable tests. You'll learn to use Playwright's built-in debugging tools, trace viewer, and inspector to diagnose test failures, implement proper wait strategies to eliminate race conditions, and recognize common error patterns. The skill covers root causes of flakiness such as timing issues, element visibility problems, and network synchronization, providing actionable solutions to make your test suites more robust.
What specialized testing scenarios does playwright-skill cover?
playwright-skill teaches you to handle advanced testing scenarios including accessibility testing to ensure compliance with WCAG standards, visual regression testing to catch unintended UI changes, API mocking to simulate backend responses, and authentication flows for secure testing. These specialized techniques allow you to build comprehensive test coverage that goes beyond basic user interactions, ensuring your applications meet accessibility requirements and behave correctly under various conditions.
How do Playwright locators and selectors work for reliable element selection?
playwright-skill explains Playwright's powerful locator system, which provides more resilient element selection than traditional CSS or XPath selectors alone. You'll learn to use Playwright's recommended locators like role-based selectors, test IDs, and text matching, which are less brittle when UI changes occur. The skill demonstrates how to combine multiple locator strategies, implement custom locators when needed, and follow best practices that make your tests maintainable and resistant to false failures caused by minor DOM changes.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Playwright Skill
> 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.
Golden Rules
getByRole()over CSS/XPath — resilient to markup changes, mirrors how users see the page- Never
page.waitForTimeout()— useexpect(locator).toBeVisible()orpage.waitForURL() - Web-first assertions —
expect(locator)auto-retries;expect(await locator.textContent())does not - Isolate every test — no shared state, no execution-order dependencies 5.
(truncated - see the full file via the links below)
File tree — 15 files
skills/playwright/LICENSE
skills/playwright/SKILL.md
skills/playwright/ci/SKILL.md
skills/playwright/ci/ci-github-actions.md
skills/playwright/ci/ci-gitlab.md
skills/playwright/ci/ci-other.md
skills/playwright/ci/docker-and-containers.md
skills/playwright/ci/global-setup-teardown.md
skills/playwright/ci/parallel-and-sharding.md
skills/playwright/ci/projects-and-dependencies.md
skills/playwright/ci/reporting-and-artifacts.md
skills/playwright/ci/test-coverage.md
skills/playwright/core/SKILL.md
skills/playwright/core/accessibility.md
skills/playwright/core/angular.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Learn Playwright testing patterns and best practices for writing reliable E2E tests”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
playwright-skill teaches you how to build robust browser automation tests using Playwright's modern API and testing patterns. Explore practical strategies for handling real-world scenarios, managing test reliability, and structuring maintainable test suites. This skill equips you with the knowledge to write production-grade end-to-end tests that scale.
playwright-core equips you with battle-tested strategies for building robust browser automation workflows. Discover how to structure E2E tests that scale, handle flaky scenarios gracefully, and integrate seamlessly into CI/CD pipelines using industry-standard Playwright techniques.
This skill teaches you how to write robust, maintainable Playwright tests by following established patterns and proven techniques. Discover strategies for handling common testing challenges, structuring your test suites effectively, and building automation that scales with your application.
Streamline end-to-end testing by integrating Playwright into your continuous integration workflows. This skill guides you through setting up automated browser tests on major CI/CD platforms, ensuring reliable test execution across your deployment pipeline.
This skill teaches you how to apply the Page Object Model (POM) pattern when writing Playwright tests, helping you organize test code into reusable, maintainable components. You'll discover when POM is the right choice and how to structure your test objects effectively for better scalability and reduced maintenance overhead.
This skill teaches you how to architect robust test suites using the Page Object Model pattern with Playwright. You'll discover proven techniques for organizing page interactions, managing selectors, and building reusable test components that scale across complex applications. Gain hands-on experience applying POM principles to create maintainable automation code.
More skills playwright-e2e-testing (MIT) · playwright-expert (MIT)