playwright-cli

Automates browser interactions for web testing, form filling, screenshots, and data extraction.

Updated Feb 6, 2026
One-click install
npx skills add https://github.com/kellymears/agents --skill playwright-cli-kellymears
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/kellymears/agents/tree/main/plugins/playwright-cli/skills/playwright-cli
Command: npx skills add https://github.com/kellymears/agents --skill playwright-cli-kellymears

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright-cli, and includes references (resource) components.

What problem does it solve? Manually testing web applications, filling repetitive forms, and extracting data from websites is slow and error-prone. This Skill drives a real browser through the playwright-cli command line, letting you navigate pages, interact with elements, and capture state without writing test code first. ## Core Features & Use Cases - Full Browser Control: Open pages, click, type, fill forms, drag elements, manage tabs, and navigate history across Chrome, Firefox, WebKit, and Edge. - State & Storage Management: Save and restore authentication state, manipulate cookies, localStorage, and sessionStorage, and run multiple isolated named sessions concurrently. - Debugging & Evidence Capture: Record traces with DOM snapshots and network logs, capture videos, take screenshots, mock network requests, and generate Playwright test code from your interactions. - Use Case: Log into a web app once, save the authenticated state with state-save, then reuse it across later sessions to scrape dashboard data or run regression checks without repeating the login flow. ## Quick Start Use playwright-cli to open https://example.com, take a snapshot of the page, and fill in the login form.

Frequently Asked Questions about playwright-cli

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

FAQPage Schema
How do I automate browser interactions with playwright-cli?▼

Run playwright-cli open with a URL, then use snapshot to see element refs like e5. Interact with commands such as click e5, fill e1 "text", and type. Each command returns an updated page snapshot for the next step.

How to fill and submit a web form using Playwright?▼

Open the page, take a snapshot to identify field refs, then use playwright-cli fill with each element ref and value. Click the submit button ref and snapshot again to verify the result.

Can I reuse login sessions across browser automation runs?▼

Yes. After logging in, run playwright-cli state-save auth.json to persist cookies and localStorage. Later, use state-load auth.json before navigating to restore the authenticated session without logging in again.

Does playwright-cli support browsers other than Chrome?▼

Yes. Pass --browser=firefox, --browser=webkit, or --browser=msedge when opening a session. Chrome is the default, and you can also connect via a browser extension or use a persistent profile directory.

What is the difference between tracing and video recording in Playwright?▼

Tracing captures DOM snapshots, network activity, console logs, and step-by-step actions for debugging. Video recording produces a WebM file of the visual session, better suited for demos and documentation.

What should I do if the playwright-cli command is not found?▼

If the global binary is unavailable, prefix commands with npx, for example npx playwright-cli open https://example.com. This runs the locally installed package without a global installation.