Automate browser interactions with playwright-cli for web testing, screenshots, form filling, debugging, and data extraction. Use this skill when the user needs to drive a browser from the terminal, inspect page state, generate Playwright test steps, record traces or video, or manipulate browser storage and network behavior.
Use this skill when browser work should be done from the terminal with playwright-cli.
playwright-cli is available. If the global binary fails, try npx playwright-cli.playwright-cli open https://example.com
playwright-cli snapshot
playwright-cli click e3
playwright-cli fill e5 "[email protected]"
playwright-cli press Enter
playwright-cli screenshot
playwright-cli close
snapshot before and after major interactions.-s=<name> when isolation matters.run-code only when the CLI command set is not enough.close, close-all, or kill-all when sessions get stuck.references/test-generation.md for turning interactions into Playwright testsreferences/storage-state.md for cookies and storagereferences/request-mocking.md for intercepting requestsreferences/running-code.md for advanced Playwright codereferences/session-management.md for multiple sessionsreferences/tracing.md for debugging tracesreferences/video-recording.md for video captureIf the plain command fails, switch to:
npx playwright-cli open https://example.com