playwright
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Write end-to-end browser tests with Playwright (Chromium, Firefox, WebKit)
- Use auto-waiting locators and built-in assertions
- Handle multiple pages, tabs, and browser contexts
- Configure Playwright projects for CI execution with traces and screenshots
- Implement the Page Object Model pattern for maintainable tests
How to use this skill
Workflow
- Initialize Playwright:
npm init playwrightto generate config and sample tests - Write tests using auto-wait locators (
getByRole,getByLabel,getByText) - Run tests:
npx playwright testin headless, headed, or UI mode - Debug failures using traces, screenshots, and the Playwright Inspector