← ClaudeAtlas

playwright-clilisted

Drive a real browser from the terminal using the Playwright CLI (snapshot, click, fill, screenshots, traces). Use when the task is CLI-first browser automation (data extraction, UI debugging, form fills, multi-tab work). For Playwright **test specs**, use `e2e-runner` instead.
ulises-jeremias/agent-toolkit · ★ 14 · Testing & QA · score 79
Install: claude install-skill ulises-jeremias/agent-toolkit
# Playwright CLI Drive a real browser from the terminal using `playwright-cli`. The bundled wrapper script runs the CLI through `npx`, so a global install is not required. > Treat this skill as **CLI-first automation**. Do NOT pivot to > `@playwright/test` test files unless the user explicitly asks for them — for > Playwright tests use [`e2e-runner`](../../../agents/e2e-runner/AGENT.md). ## When to use - Quick, one-off browser automation from the shell (snapshot → interact → screenshot/trace). - Reproducing a UI bug step-by-step with persistent sessions. - Extracting data from a page that requires JS rendering. - Smoke-checking a deployment without authoring a test suite. ## Prerequisites - `npx` on `PATH` (provided by Node.js / `volta` from `bootstrap`). - Optional but recommended: a global install for faster startup — `npm install -g @playwright/cli@latest`. - Outbound HTTPS access to npm and to the target sites. `skills check playwright-cli` validates `npx` is present. ## Wrapper script (set once per shell) ```bash export PWCLI="$HOME/.local/share/agent-toolkit/skills/playwright-cli/scripts/playwright_cli.sh" alias pwcli="$PWCLI" pwcli --help ``` The wrapper uses `npx --yes --package @playwright/cli playwright-cli`, so even without a global install the first call will fetch the package and cache it. If `PLAYWRIGHT_CLI_SESSION` is set, the wrapper passes it as `--session` automatically — handy to keep separate browser contexts per project. ## Quick start ``