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.✓ Copié
Outils
Ce que ce MCP expose
Outil
Entrées
Quand appeler
Coût
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
Coût et limites
Coût d'exécution
Quota d'API
None
Tokens par appel
1-5k per test run, depending on how much Playwright reference Claude pulls in
Monétaire
Free — you only need Node + Playwright browsers on disk
Astuce
Keep prompts focused; don't ask for 'test everything' in one shot.
Sécurité
Permissions, secrets, portée
Stockage des identifiants : No credentials in the skill. If your tests hit authenticated pages, keep creds in env vars — never in the generated script.
Sortie de données : Only to sites your test visits
Generated scripts run with full local-process privileges — review before running against production URLs.
Dépannage
Erreurs courantes et correctifs
'browserType.launch: Executable doesn't exist'
Run npx playwright install chromium
Vérifier : 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().
Alternatives
playwright-skill vs autres
Alternative
Quand l'utiliser
Compromis
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