lambdatest avatar

Playwright Skill

This generates production-grade Playwright tests across TypeScript, JavaScript, Python, Java, and C#, with built-in support for both local execution and TestMu AI cloud testing across 3000+ browser/OS combinations. The routing logic is smart: it detects whether you need local debugging or cloud execution based on your request, defaults to accessible selectors (getByRole, getByLabel), and enforces web-first assertions that auto-retry. It includes full Page Object Model scaffolding, handles the tricky bits like proper test status reporting to LambdaTest, and has specific guidance for impossible combinations like Safari on Windows. The anti-patterns table alone will save you from the usual timeout and flaky test mistakes.

skills.sh installs
554
GitHub stars
393
last updated
Aug 21, 2026

Install

$ npx -y skills add lambdatest/agent-skills --skill playwright-skill --agent claude-code

Installs into .claude/skills of the current project.

Files

Playwright Test Automation

Step 1 — Determine Execution Target

Decide BEFORE writing any code:

User says...TargetAction
No cloud mention, "locally", "debug"LocalStandard Playwright config
"cloud", "TestMu", "LambdaTest", "cross-browser", "real device"CloudSee reference/cloud-integration.md
Impossible local combo (Safari on Windows, Edge on Linux)CloudSuggest TestMu AI, see reference/cloud-integration.md
"HyperExecute", "parallel at scale"HyperExecuteDefer to hyperexecute-skill
"visual regression", "screenshot comparison"SmartUIDefer to smartui-skill
AmbiguousLocalDefault local, mention cloud option

Step 2 — Detect Language

Sponsors

Details

Repository
github.com/lambdatest/agent-skills
Categories
Testing & QA, AI & Agent Building, Debugging, Automation & Workflows, Python, Cloud & Infrastructure, Mobile Development, Java & JVM, Design & UI/UX, .NET & C#
First seen
Jun 3, 2026

More from lambdatest/agent-skills

All 2
1davila7 avatarplaywright-skilldavila7/claude-code-templatesComplete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check respon525skills.sh installs
2aj-geddes avatarfrontend-testingaj-geddes/useful-ai-promptsImplement comprehensive frontend testing using Jest, Vitest, React Testing Library, and Cypress. Use when building robust test suites for UI and integration tes514skills.sh installs
3bmad-labs avatartypescript-unit-testingbmad-labs/skillsUnit testing for TypeScript/NestJS projects using Jest, @golevelup/ts-jest (DeepMocked/createMock), and in-memory databases, with AAA structure. Use whenever th511skills.sh installs
4parcadei avatartestparcadei/continuous-claude-v3Comprehensive testing workflow - unit tests ∥ integration tests → E2E tests503skills.sh installs
5rshankras avatartestingrshankras/claude-code-apple-skillsTDD and testing skills for iOS/macOS apps. Covers characterization tests, TDD workflows, test contracts, snapshot tests, test infrastructure, and deterministic 481skills.sh installs
6secondsky avatarmobile-app-testingsecondsky/claude-skillsMobile app testing with unit tests, UI automation, performance testing. Use for test infrastructure, E2E tests, testing standards, or encountering test framewor480skills.sh installs