Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

Playwright CLI Browser Automation

Terminal-first browser control with playwright-cli — navigate, fill forms, screenshot, mock networks, trace, and generate Playwright tests.

Dev & CodingIntermediate★ 391⑂ 61AI score 9/10Last updated: Oct 10, 2026

What it does

  • Drives a real browser entirely from the CLI: open, snapshot to list element refs, then click, 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-save and reuses it with state-load.
  • Mocks third-party APIs via route, and debugs failures with tracing-start/stop, console, and network.
  • Falls back to run-code for 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

  1. "Log in and walk through checkout step 3, screenshotting each step" → open → snapshot → fill/click → screenshot --filename=checkout-step3.png.
  2. "Show me how the UI behaves when the payment API returns 500" → mock it with route, then inspect console and network.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Make sure Node.js is installed (node -v).
  2. Clone the repository: git clone https://github.com/testdino-hq/playwright-skill.git
  3. Copy the skill into Claude's skills folder: mkdir -p ~/.claude/skills && cp -r playwright-skill/playwright-cli ~/.claude/skills/
  4. Install the tool and a browser: playwright-cli install --skills, then playwright-cli install-browser (if the command is missing, follow the repo README's install steps first).
  5. Restart Claude Code and confirm playwright-cli appears in your skills list.
  6. Smoke test it: playwright-cli open http://localhost:3000 followed by playwright-cli snapshot.
  7. Clean up when finished with playwright-cli close or close-all.