playwright

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

Updated Aug 6, 2026
One-click install
npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill playwright-ferrarifankid04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/ferrarifankid04/ai-skills-public/tree/main/claude-code/skills/playwright
Command: npx skills add https://github.com/ferrarifankid04/ai-skills-public --skill playwright-ferrarifankid04

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Manually testing web pages, filling forms, and debugging UI flows in a browser is repetitive and hard to reproduce. This Skill lets you drive a real browser from the terminal with playwright-cli, capturing snapshots, screenshots, and traces without writing test files. ## Core Features & Use Cases - Terminal Browser Automation: Open pages, click elements, fill forms, and navigate using stable element refs from accessibility snapshots. - Artifact Capture: Take screenshots, generate PDFs, record traces, and inspect console or network activity for debugging UI flows. - Session Isolation: Run named sessions to keep separate projects or workflows isolated, with a wrapper script that works without a global install. - Use Case: You need to verify a checkout flow on a staging site. Open the page with --headed, snapshot to get element refs, fill the form fields, click submit, and capture a screenshot and trace of the result. ## Quick Start Ask the AI to open a website with the Playwright CLI, snapshot the page, fill in a form, and take a screenshot of the result.

Frequently Asked Questions about playwright

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

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

Use playwright-cli through the bundled wrapper script, which runs it via npx without a global install. Open a page, run snapshot to get element refs, then use commands like click, fill, and type to interact with the page.

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 verify the result and capture a screenshot if needed.

Does playwright-cli require a global installation?

No, the bundled wrapper script runs playwright-cli through npx with the @playwright/cli package, so no global install is needed. You only need Node.js and npm installed so that npx is available on your PATH.

Why do Playwright element refs stop working after navigation?

Element refs go stale after navigation, major DOM changes, or modal and tab switches. Run snapshot again to get fresh refs whenever a command fails due to a missing ref or the UI changes significantly.

Can I run isolated browser sessions with playwright-cli?

Yes, use the --session flag with a name to isolate work, or set the PLAYWRIGHT_CLI_SESSION environment variable once. The wrapper script automatically applies the environment variable when no session flag is passed.