playwright

Automate real browser interactions from the terminal using playwright-cli commands.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TECH-HY/SKILLS --skill playwright-tech-hy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/TECH-HY/SKILLS/tree/main/skills/playwright
Command: npx skills add https://github.com/TECH-HY/SKILLS --skill playwright-tech-hy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @playwright/cli, and includes scripts (resource) and references (resource) components.

What problem does it solve? Verifying what a browser actually renders, reproducing UI bugs, and capturing visual evidence often requires manual clicking through pages. This Skill drives a real browser from the terminal so agents can navigate, fill forms, snapshot pages, and capture screenshots without writing test files. ## Core Features & Use Cases - CLI-first browser automation: Open pages, snapshot the DOM to get stable element refs, click, type, fill forms, and navigate using playwright-cli commands. - Evidence capture: Take screenshots, PDFs, console logs, network logs, and traces to document UI behavior or post-deploy verification. - Session isolation: Use named sessions to keep separate workflows isolated and avoid state conflicts. - Use Case: After a deployment, open the production site with the wrapper script, snapshot the page, click through a key flow, and capture a screenshot proving the page rendered and the interaction still works. ## Quick Start Use the playwright skill to open https://example.com in a browser, snapshot the page, and take a screenshot to confirm it renders correctly.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I automate browser actions from the command line with Playwright?

Use playwright-cli commands through the wrapper script: open a URL, run snapshot to get element refs, then click, fill, or type using those refs. The wrapper runs the CLI via npx so no global install is required.

How to fill and submit a web form using playwright-cli?

Open the form page, run snapshot to get element refs, then use fill with each field's ref and value, and click the submit button's ref. Snapshot again afterward to confirm the submission result.

Does playwright-cli require a global installation?

No. The bundled wrapper scripts invoke the CLI through npx --package @playwright/cli, so only Node.js with npx must be present on PATH. A global npm install is optional.

Why do playwright-cli element refs stop working?

Refs go stale after navigation, DOM changes, or modal open/close events. Run snapshot again to get fresh refs and retry the command with the updated identifiers.

Can I run parallel playwright-cli commands on the same session?

No. Parallel commands against one named session can fail with EADDRINUSE named-pipe conflicts, especially on Windows. Execute commands sequentially in one session or use separate session names.