Playwright CLI Browser Automation
Terminal-first browser control with playwright-cli — navigate, fill forms, screenshot, mock networks, trace, and generate Playwright tests.
Dev & CodingIntermediate★ 361⑂ 60AI score 9/10Last updated: Sep 6, 2026
What it does
- Drives a real browser entirely from the CLI:
open,snapshotto list element refs, thenclick,fill,select,drag,upload— no script files needed. - Captures screenshots, PDFs, and video, resizes viewports, and emulates devices.
- Manages cookies, localStorage and sessionStorage; saves login state with
state-saveand reuses it withstate-load. - Mocks third-party APIs via
route, and debugs failures withtracing-start/stop,console, andnetwork. - Falls back to
run-codefor the full Playwright API and points to guides for generating test specs.
Who it's for
- QA engineers and frontend developers writing or debugging end-to-end tests.
- Developers who want to visually verify flows on localhost or staging.
- Anyone needing isolated parallel sessions or reusable authenticated state.
Examples
- "Log in and walk through checkout step 3, screenshotting each step" →
open→snapshot→fill/click→screenshot --filename=checkout-step3.png. - "Show me how the UI behaves when the payment API returns 500" → mock it with
route, then inspectconsoleandnetwork. - "Turn this signup flow into a Playwright spec" → record the interactions and generate code per the test-generation guide.
Note: only automate applications you own or are explicitly authorized to test.
· · · 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 Claude 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 && mkdir -p ~/.claude/skills && cp -r 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). - Clone the repository:
git clone https://github.com/testdino-hq/playwright-skill.git - Copy the skill into Claude's skills folder:
mkdir -p ~/.claude/skills && cp -r playwright-skill/playwright-cli ~/.claude/skills/ - Install the tool and a browser:
playwright-cli install --skills, thenplaywright-cli install-browser(if the command is missing, follow the repo README's install steps first). - Restart Claude Code and confirm
playwright-cliappears in your skills list. - Smoke test it:
playwright-cli open http://localhost:3000followed byplaywright-cli snapshot. - Clean up when finished with
playwright-cli closeorclose-all.
View source on GitHub ↗License: MIT