playwright

Automate real browsers from the terminal using playwright-cli commands.

60|11|Updated Jun 15, 2026
One-click install
npx skills add https://github.com/matyasstoch/david-skills --skill playwright-matyasstoch
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: playwright
Source: https://github.com/matyasstoch/david-skills/tree/main/skills/playwright
Command: npx skills add https://github.com/matyasstoch/david-skills --skill playwright-matyasstoch

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Manually testing and interacting with web pages in a browser is slow and hard to reproduce. This Skill lets you drive a real browser from the terminal to navigate pages, fill forms, capture snapshots and screenshots, extract data, and debug UI flows without writing test files. ## Core Features & Use Cases - CLI-first browser automation: Open pages, click elements, fill forms, and press keys using stable element refs from accessibility snapshots via playwright-cli. - Artifact capture and debugging: Take screenshots, generate PDFs, record traces, and inspect console and network activity to diagnose UI issues. - Session isolation and multi-tab workflows: Run named sessions and manage multiple tabs for parallel or stateful automation tasks. - Use Case: You need to verify a checkout flow on a staging site. Open the page with the wrapper script, snapshot to get element refs, fill the form fields, submit, and capture a screenshot and trace for review. ## Quick Start Ask the AI to open a website with the Playwright CLI wrapper, take a snapshot, and click a specific element to automate your browser workflow.

Frequently Asked Questions about playwright

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

FAQPage Schema
How do I automate a browser 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 do I 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. Re-snapshot afterward to confirm the submission result.

Does playwright-cli require a global npm install?▼

No, the wrapper script runs playwright-cli through npx --package @playwright/cli, so only Node.js with npx is required. A global install via npm install -g @playwright/cli is optional.

Why do playwright-cli element refs stop working?▼

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

Can I run isolated browser sessions with playwright-cli?▼

Yes, pass --session with a name to any command, or set the PLAYWRIGHT_CLI_SESSION environment variable. Sessions isolate browser state across different projects or workflows.