Documentation
README
Browser Automation with playwright-cli
The workspace pins @playwright/cli. In the examples below,
playwright-cli means pnpm --dir apps exec playwright-cli from the repository
root. This keeps the examples short while using the lockfile version rather
than an unrelated global installation.
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
This is the opening of the README. Read the full README on GitHub.