Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 1.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install playwright-cli in Claude Code

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

A

No 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 →

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.

playwright-cli Install

Add to stack

Loading.