playwright-cli

Automate browser interactions to navigate, fill forms, capture screenshots, and extract page data.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/pure-golang/level85 --skill playwright-cli-pure-golang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/pure-golang/level85/tree/main/.agents/skills/playwright-cli
Command: npx skills add https://github.com/pure-golang/level85 --skill playwright-cli-pure-golang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

playwright-cli removes the guesswork and tedium of manually clicking through websites by letting you drive a real browser to perform actions, capture screenshots, and extract information reliably.

Core Features & Use Cases

  • Browser navigation & interactions: open pages, click, type, fill, select options, upload files, and run JavaScript against the current page.
  • State, storage, and session workflows: manage cookies and local/session storage, save/restore storage state, and run isolated named browser sessions.
  • Debugging & evidence generation: create snapshots after commands, record traces, and optionally record videos for later inspection.
  • Test support: generate Playwright TypeScript code from your interactive session and map actions back to resilient locators.

Quick Start

Open a page, take a snapshot, and click a specific element using its snapshot reference by telling the AI: "Open https://example.com and then click element e3 after taking a snapshot."

Frequently Asked Questions about playwright-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate web testing and capture screenshots from a browser session?

You can automate web testing and capture screenshots by driving a real browser to navigate pages, interact with elements, and save snapshots. This approach removes manual clicking inconsistencies and generates visual evidence for UI debugging.

Can I manage cookies and storage state across multiple isolated browser sessions?

Yes, you can manage cookies and local or session storage by saving and restoring storage state. This allows you to run isolated named browser sessions and maintain authentication contexts across multiple tabs without manual logins.

How do I target specific page elements reliably during browser automation?

You target elements deterministically by taking a page snapshot and referencing specific snapshot identifiers, such as telling the system to click element e3. This ensures resilient locator mapping for web testing and scraping workflows.

Does browser automation support recording traces and videos for debugging?

Yes, browser automation supports recording traces and videos during your session for later inspection. This creates debugging evidence by capturing page interactions, network activity, and visual outputs automatically.

What is the best way to generate Playwright code from interactive browser sessions?

The best way to generate Playwright TypeScript code is to perform actions in an interactive browser session and map them back to resilient locators. This translates manual navigation and interaction steps into reusable test scripts.

Can I route network requests and mock APIs during web testing?

Yes, you can route network requests and mock APIs by executing custom Playwright code within the session. This intercepts and modifies network traffic to test various frontend states without relying on live backend services.