playwright-cli
gaia-react/gaia/.claude/skills/playwright-cli/SKILL.md
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Skill23 starsChanged 6 days ago
What's in it
- Browser Automation with playwright-cli
- Quick start
- How interaction refs work
- Local installation fallback
- Browser sessions
- Command reference
- Specific tasks
Tools it asks for
- Bash(playwright-cli:*)
--- name: playwright-cli description: Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages. allowed-tools: Bash(playwright-cli:*) --- # Browser Automation with playwright-cli ## Quick start ```bash # open new browser playwright-cli open # navigate to a page playwright-cli goto https://playwright.dev # interact with the page using refs from the snapshot playwright-cli click e15 playwright-cli type "page.click" playwright-cli press Enter # take a screenshot (rarely used, as snapshot is more common) playwright-cli screenshot # close the browser playwright-cli close ``` ## How interaction refs work After every command, playwright-cli emits a snapshot file (`.playwright-cli/page-*.yml`). Element refs (`e3`, `e7`, `e15`) come from that snapshot, read it before the next interactive command. Use `playwright-cli snapshot` to refresh on demand. ```bash > playwright-cli goto https://example.com ### Page - Page URL: https://example.com/ - Page Title: Example Domain ### Snapshot [Snapshot](.playwright-cli/page-2026-02-14T19-22-42-679Z.yml) ``` If `--filename` is not provided, a new snapshot file is created with a timestamp. Default to automatic file naming; use `--filename=` when the artifact is part of the workflow result. ## Local installation fallback If running globally-available `playwright-cli` fails, prefix with `npx`: ```bash npx playwright-cli open https://example.com npx playwright-cli click e1 ``` ## Browser sessions Use `-s=<name>` to run multiple parallel sessions: ```bash playwright-cli -s=mysession open example.com --persistent playwright-cli -s=mysession click e6 playwright-cli -s=mysession close playwright-cli list # list active sessions playwright-cli close-all # close every browser ``` ## Command reference Full surface, core, navigation, keyboard, mouse, save-as, tabs, storage (cookies / localStorage / sessionStorage), network, devtools, open parameters, snapshots, browser sessions, end-to-end examples, is in [references/commands.md](references/commands.md). ## Specific tasks - **Request mocking**: [references/request-mocking.md](references/request-mocking.md) - **Running Playwright code**: [references/running-code.md](references/running-code.md) - **Browser session management**: [references/session-management.md](references/session-management.md) - **Storage state (cookies, localStorage)**: [references/storage-state.md](references/storage-state.md) - **Test generation**: [references/test-generation.md](references/test-generation.md) - **Tracing**: [references/tracing.md](references/tracing.md) - **Video recording**: [references/video-recording.md](references/video-recording.md)
More agent context in gaia-react/gaia
20 other files this repository gives its agents.
CLAUDE.md
Skill
- a11y-fixes.claude/skills/a11y-fixes/SKILL.md
- eslint-fixes.claude/skills/eslint-fixes/SKILL.md
- file-tech-debt.claude/skills/file-tech-debt/SKILL.md
- gaia-handoff.claude/skills/gaia-handoff/SKILL.md
- gaia-pickup.claude/skills/gaia-pickup/SKILL.md
- gaia-react-perf.claude/skills/gaia-react-perf/SKILL.md
- gaia-wiki.claude/skills/gaia-wiki/SKILL.md
- new-component.claude/skills/new-component/SKILL.md
- new-hook.claude/skills/new-hook/SKILL.md
- new-route.claude/skills/new-route/SKILL.md
- new-service.claude/skills/new-service/SKILL.md
- react-code.claude/skills/react-code/SKILL.md
- release-notes.claude/skills/release-notes/SKILL.md
- skeleton-loaders.claude/skills/skeleton-loaders/SKILL.md
- tailwind.claude/skills/tailwind/SKILL.md
- tdd.claude/skills/tdd/SKILL.md
- typescript.claude/skills/typescript/SKILL.md
- update-deps.claude/skills/update-deps/SKILL.md
- update-gaia.claude/skills/update-gaia/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

