playwright-cli
Skill by oss-apps
Automates a browser through the playwright-cli command line for web testing, form filling, screenshots, and data extraction. Built for AI assistants that need to navigate sites and interact with web pages.
Install playwright-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/oss-apps/split-pro /tmp/split-pro && mkdir -p ~/.claude/skills && cp -r /tmp/split-pro/.agents/skills/playwright-cli ~/.claude/skills/playwright-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/oss-apps/split-pro /tmp/split-pro && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/split-pro/.agents/skills/playwright-cli ~/.gemini/antigravity-cli/skills/playwright-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant a set of playwright-cli commands for controlling a browser. The assistant can open pages, click, type, fill forms, select options, take snapshots and screenshots, and run JavaScript with eval. After each command, the tool reports the current page URL, title, and a snapshot file that lists element refs the assistant can use in later steps.
The skill also covers tabs, cookies, localStorage and sessionStorage, network request mocking with route, console and network inspection, tracing, and video recording. Browsers can be chosen as chrome, firefox, webkit, or msedge, and sessions can be named and kept with a persistent profile. The skill is aimed at users who want an assistant to test web applications, fill forms, or pull information from web pages.
Written from the project's SKILL.md and checked against it.
What it can do
- Page navigationOpens URLs, moves back and forward, and reloads pages in the browser.
- Form interactionTypes, fills, selects, checks, uploads files, and clicks elements by snapshot ref.
- Snapshots and screenshotsCaptures the page state as a snapshot file and saves screenshots or PDFs.
- Storage managementReads, sets, and clears cookies, localStorage, and sessionStorage, and saves or loads state.
- Network mockingRoutes matching requests to mock status codes or response bodies.
- DevTools accessShows console messages and network activity, and starts or stops tracing and video.
- Tabs and dialogsLists, opens, selects, and closes tabs, and accepts or dismisses dialogs.
- Browser sessionsRuns named sessions, lists them, and closes or force-kills browser processes.
What you need
- playwright-cli available globally or through npx
Try asking
- Open example.com, fill in the contact form, and take a screenshot.
- Go to my staging site and check the cookies set after login.
- Mock all .jpg requests on this page with a 404 and reload it.
Good to know
- The browser profile is in-memory by default unless --persistent or --profile is used.
- Screenshots are described as rarely used, since snapshots are the common output.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/playwright-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(playwright-cli:*)
-
SKILL.md7 KB -
references/request-mocking.md2 KB -
references/running-code.md5 KB -
references/session-management.md4 KB -
references/storage-state.md5 KB
Show all 8 files
-
references/test-generation.md2 KB -
references/tracing.md4 KB -
references/video-recording.md1 KB
Alternatives to playwright-cli
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
playwright-cli: common questions
Which browsers does playwright-cli support?
The source lists chrome, firefox, webkit, and msedge through the --browser option. It can also connect to a browser through an extension with --extension.
How does the assistant find elements on a page?
After each command the tool provides a snapshot of the page, and elements are referenced by IDs such as e5 in later commands. A snapshot can also be taken on demand.
Can login state be kept between runs?
Yes. Sessions can use a persistent profile with --persistent or a custom directory with --profile, and state can be saved and loaded with state-save and state-load.
How do I install playwright-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is playwright-cli free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is playwright-cli safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to playwright-cli?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
