Claude writes and runs custom Playwright scripts on-demand — headed browser, real output — no pre-baked test library to memorize.
Rather than shipping fixed helper functions, this skill teaches Claude to write bespoke Playwright code per task and execute it via run.js. The browser runs visibly by default so you can watch. Playwright API docs load on-demand so Claude has context without blowing the window.
Playwright for web, ios-simulator-skill for native — use both in a cross-platform test session
Run the playwright web flow and the ios-simulator native flow in sequence, report both.✓ Copiado
Ferramentas
O que este MCP expõe
Ferramenta
Entradas
Quando chamar
Custo
Custom Playwright script generation
task description
Any browser automation ask
0
run.js executor
script path
After script generation
0
Headed/headless toggle
flag
CI vs local debugging
0
Custo e limites
O que custa rodar
Cota de API
None
Tokens por chamada
1-5k per test run, depending on how much Playwright reference Claude pulls in
Monetário
Free — you only need Node + Playwright browsers on disk
Dica
Keep prompts focused; don't ask for 'test everything' in one shot.
Segurança
Permissões, segredos, alcance
Armazenamento de credenciais: No credentials in the skill. If your tests hit authenticated pages, keep creds in env vars — never in the generated script.
Saída de dados: Only to sites your test visits
Generated scripts run with full local-process privileges — review before running against production URLs.
Solução de problemas
Erros comuns e correções
'browserType.launch: Executable doesn't exist'
Run npx playwright install chromium
Verificar: npx playwright --version
Selector fails intermittently
Switch to role/label selectors; add await expect(...).toBeVisible() waits.
Script hangs
Claude likely forgot to close the browser. Tell it to always wrap in try/finally with await browser.close().
Alternativas
playwright-skill vs. outros
Alternativa
Quando usar
Troca
playwright MCP
You want structured MCP tools (click, fill, snapshot) rather than code generation
MCP abstracts away code; this skill writes real scripts you can reuse