Webapp Testing (Playwright)
OfficialOfficial skill that lets Claude drive a real headless browser with Playwright to click, screenshot, and read console logs while testing your local web app.
Dev & CodingIntermediate★ 167,132⑂ 19,920AI score 9/10Last updated: Aug 7, 2026
What it does
An official Anthropic skill that enables Claude Code to test locally running web applications through a real browser (headless Chromium).
- Writes native Python Playwright scripts tailored to the task instead of relying on rigid templates.
- Handles server lifecycle: the bundled
scripts/with_server.pyboots one or more dev servers (e.g. backend + frontend), waits for the ports to be ready, runs your automation, then tears everything down. - Reconnaissance-then-action pattern: wait for
networkidle→ screenshot/inspect DOM → discover selectors → act, which avoids the classic "element not found" failures on dynamic SPAs. - Debug artifacts: full-page screenshots, console log capture, and examples for discovering buttons, links, and inputs.
Who it's for
- Frontend developers on React/Vue/Svelte who want UI behavior verified automatically
- Full-stack devs who want Claude to confirm a fix actually works in the browser
- Teams that need quick E2E test drafts or regression check scripts
- Anyone validating static HTML prototypes via
file://URLs
Example uses
- Login flow check: "Start npm run dev on 5173, log in with the test account, and screenshot the dashboard" → skill uses
with_server.py, fills the form, saves images to/tmp. - Console error triage: "There's a red console error on page load — find the cause" → a script attaches a console listener, collects logs, and points to the offending file.
- Backend + frontend E2E: launch backend on 3000 and frontend on 5173 together to confirm API data renders correctly.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/webapp-testing folder from the GitHub repo anthropics/skills into my ~/.claude/skills/webapp-testing/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/anthropics/skills.git /tmp/anthropic-skills && mkdir -p ~/.claude/skills && cp -r /tmp/anthropic-skills/skills/webapp-testing ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Prerequisites: make sure Python 3 and Node.js are installed (
python3 --version). - Install Playwright: run
pip install playwright, thenpython -m playwright install chromiumto fetch the browser binary. - Create the skills folder:
mkdir -p ~/.claude/skills - Clone the repo:
git clone https://github.com/anthropics/skills.git /tmp/anthropic-skills - Copy the skill:
cp -r /tmp/anthropic-skills/skills/webapp-testing ~/.claude/skills/ - Verify:
ls ~/.claude/skills/webapp-testingshould show SKILL.md, scripts/, and examples/. - Use it: open Claude Code inside your project and ask something like "spin up the dev server and screenshot the login page" — the skill triggers automatically.