Playwright CLI Browser Automation
Terminal-first browser control for navigating, filling forms, capturing media, mocking network calls, debugging and generating Playwright tests.
What it does
Teaches Claude to drive a real browser through playwright-cli without writing script files. It covers opening and navigating pages, taking accessibility snapshots to get element refs, clicking/filling/selecting/uploading, screenshots, PDFs and video, cookie/localStorage/session state management, saved auth state, network request mocking, trace-based debugging, and parallel named sessions — with links to deeper guides for test generation and device emulation.
Who it's for
- QA engineers building and maintaining E2E suites
- Frontend developers who want the agent to verify UI behavior directly
- Teams repeatedly validating login, checkout, or signup flows
Examples
- "Open localhost:3000, fill the signup form through step 3 and screenshot each step" →
open→snapshot→fill/click→screenshot --filename=signup-step3.png - "Log in once, save state to auth.json, then reuse it for later checks" →
state-save/state-load - "Mock the payment API to return a 500 and record a trace of how the UI reacts" →
route+tracing-start/tracing-stop
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/testdino-hq/playwright-skill/HEAD/playwright-cli/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
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 AI Skill Mart. Copy the playwright-cli folder from the GitHub repo testdino-hq/playwright-skill into my ~/.claude/skills/playwright-cli/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/testdino-hq/playwright-skill.git /tmp/playwright-skill && mkdir -p ~/.claude/skills && cp -r /tmp/playwright-skill/playwright-cli ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Make sure Node.js is installed (
node -v). - Install the CLI:
npm install -g @playwright/cli@latest - Download browsers:
playwright-cli install-browser - Clone the skill repo:
git clone https://github.com/testdino-hq/playwright-skill.git - Copy the skill folder:
mkdir -p ~/.claude/skills && cp -r playwright-skill/playwright-cli ~/.claude/skills/ - Restart Claude Code and try: "use playwright-cli to open http://localhost:3000 and take a snapshot".
- Only automate applications you own or have explicit authorization to test.