playwright-cli
« Back to VersTracker
Description:
CLI for Playwright: record/generate code, inspect selectors, take screenshots
Type: Formula  |  Tracked Since: Feb 8, 2026
Links: Homepage  |  @PlaywrightWeb  |  formulae.brew.sh
Category: Developer tools
Tags: testing automation browser cli web-development
Install: brew install playwright-cli
About:
The Playwright CLI is a command-line interface for the Playwright browser automation framework. It provides tools to record user interactions and generate test code, inspect page elements for selectors, and capture screenshots or PDFs. Its primary value is enabling rapid test creation and web page inspection directly from the terminal.
Key Features:
  • Record user interactions and generate test code in multiple languages
  • Inspect page elements to find reliable selectors for automation
  • Capture screenshots and PDFs of web pages
  • Run tests and generate reports from the command line
  • Install browser binaries for different channels
Use Cases:
  • Rapid test script generation by recording browser sessions
  • Debugging and selector discovery for web automation projects
  • Automating visual snapshots and PDF generation for documentation
Alternatives:
  • puppeteer – Headless Chrome Node.js library, lacks built-in CLI for code generation and multi-browser support.
  • cypress – E2E testing framework with a GUI recorder, focused on testing rather than general browser automation CLI.
Version History
Detected Version Rev Change Commit
Feb 8, 2026 10:32am 0 META c4d6fc74