Playwright
Installation
SKILL.md
Trigger
Use when writing Playwright tests, debugging failures, scraping with Playwright, or setting up CI/CD pipelines.
Selector Priority (Always)
getByRole()— accessible, resilientgetByTestId()— explicit, stablegetByLabel(),getByPlaceholder()— form elementsgetByText()— visible content (exact match preferred)- CSS/XPath — last resort, avoid nth-child and generated classes