Testing 6,096 installs

Browser Automation with playwright-cli

by microsoft/playwright-cli

Automate browser interactions, test web pages and work with Playwright tests.

Skill content

Browser automation with 40+ commands for navigation, interaction, form filling, and web testing.

- Supports multiple browsers (Chrome, Firefox, WebKit, Edge) with persistent profiles, extensions, and custom configurations

- Core interactions include clicking, typing, dragging, selecting, uploading files, and handling dialogs across page elements

- Storage management for cookies, localStorage, and sessionStorage; network request mocking and routing for testing

- DevTools integration with console logging, network inspection, tracing, and video recording for debugging

- Named browser sessions for parallel workflows and snapshot-based page state capture after each command

Browser Automation with playwright-cli

Quick start

# 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