What problem does it solve?
This guide reduces friction when using the Playwright CLI by consolidating commands, workflows, and debugging patterns so developers can run, generate, and analyze E2E tests reliably and quickly.
Core Features & Use Cases
- Interactive CLI with element refs: snapshot pages to obtain element refs (e1, e2, …) and perform click, fill, type, and navigation without crafting selectors.
- Code generation and test workflow: use codegen to record flows, refine generated tests, and run them in development or CI with UI/debug modes.
- Debugging, tracing, and CI best practices: guidance on trace modes, Inspector usage, session management, CI configuration (forbidOnly, retries, workers), artifact upload, and sharding strategies.
- ARIA snapshots for structural checks: prefer ARIA snapshots for semantic verification and robust locator debugging over raw screenshots.
Quick Start
Open an interactive Playwright session to snapshot the page and interact with elements for quick UI inspection.