playwright-cli

Automate browser navigation and web interactions via Playwright commands.

4|4|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/ErikHellman/willys-agent --skill playwright-cli-erikhellman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/ErikHellman/willys-agent/tree/main/.claude/skills/playwright-cli
Command: npx skills add https://github.com/ErikHellman/willys-agent --skill playwright-cli-erikhellman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automating repetitive browser work like navigating sites, filling forms, taking screenshots, and extracting page data without building custom UI test code.

Core Features & Use Cases

  • Browser navigation & interaction: Open pages, click, type, fill inputs, select options, and manage tabs to reproduce real user flows.
  • State, artifacts, and debugging: Use snapshots, screenshots, PDFs, tracing, and video to understand what happened and capture evidence.
  • Advanced scenarios: Persist and restore cookies/localStorage (state save/load), mock or intercept network requests, and run custom Playwright code for conditional logic.
  • Use case: Troubleshoot a failing login or form submission by recording steps, inspecting generated snapshots, and then adding targeted network mocks for deterministic behavior.

Quick Start

Open the target site, take a snapshot, fill the form fields using the displayed element references, and submit the form to verify the result.

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 form filling from the terminal?

You can automate web testing and form filling from the terminal by driving browser navigation, clicking UI controls, and filling inputs to reproduce real user journeys without writing custom UI test code.

Can I intercept and mock network traffic during browser automation?

Yes, you can intercept and mock network requests during browser automation to create deterministic testing scenarios and troubleshoot failing form submissions or login flows.

How do I extract data and capture screenshots from a web page?

To extract data and capture screenshots, you navigate to the target site, take a snapshot to identify elements by their reference IDs, and generate screenshots, PDFs, or video recordings as evidence.

Does browser automation support saving and restoring session state?

Yes, browser automation supports saving and restoring storage state, allowing you to persist cookies and localStorage to maintain authenticated sessions across multiple runs.

How do I run custom Playwright code for advanced conditional logic?

You can run custom Playwright code alongside snapshot element targeting to execute advanced conditional logic, allowing you to handle complex interactions within the current browser session.