using-playwright-cli
Installation
SKILL.md
Playwright CLI
Browser automation through npx @playwright/cli commands executed
in Bash. This is the AI-agent-focused CLI, not the test runner.
Required Reading
Read the relevant reference before using commands:
| Working On | Reference File | Key Topics |
|---|---|---|
| Commands, flags, syntax | command-reference | All 50+ commands with flags and examples |
| Workflow patterns, sessions | workflows | Snapshot-first workflow, sessions, state, multi-tab |
| Network, cookies, storage | state-and-network | Cookies, localStorage, sessionStorage, route interception |
Core Concept: Snapshot-First Workflow
Playwright-cli uses element references (e.g., e15, e21) to identify
interactive elements on a page. These references come from snapshots.