playwright-cli

CLI tool for recording, generating, and inspecting Playwright tests

brewmacoslinux
Try with needOr install directly
Source

About

CLI for Playwright: record/generate code, inspect selectors, take screenshots

Commands

playwright

Examples

Record a new test by opening a browser and capturing interactions$ playwright codegen https://example.com
Inspect element selectors on a webpage interactively$ playwright inspect https://example.com
Take a screenshot of a webpage$ playwright screenshot https://example.com screenshot.png