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
Herramientas
Lo que expone este MCP
Herramienta
Entradas
Cuándo llamar
Coste
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
Coste y límites
Lo que cuesta ejecutarlo
Cuota de API
None
Tokens por llamada
1-5k per test run, depending on how much Playwright reference Claude pulls in
Monetario
Free — you only need Node + Playwright browsers on disk
Consejo
Keep prompts focused; don't ask for 'test everything' in one shot.
Seguridad
Permisos, secretos, alcance
Almacenamiento de credenciales: No credentials in the skill. If your tests hit authenticated pages, keep creds in env vars — never in the generated script.
Salida de datos: Only to sites your test visits
Generated scripts run with full local-process privileges — review before running against production URLs.
Resolución de problemas
Errores comunes y soluciones
'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 otros
Alternativa
Cuándo usarla
Contrapartida
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