playwright-cli

Automate browser interactions and debug Playwright tests from the command line.

2|1|Updated Apr 22, 2026
One-click install
npx skills add https://github.com/pytholic/claude-skills --skill playwright-cli-pytholic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/pytholic/claude-skills/tree/main/playwright-cli
Command: npx skills add https://github.com/pytholic/claude-skills --skill playwright-cli-pytholic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of manually testing and debugging web applications by giving you a command-driven way to inspect pages, interact with elements, and reproduce browser behavior reliably.

Core Features & Use Cases

  • Browser automation: Open pages, click controls, fill forms, handle tabs, dialogs, and navigation with Playwright-backed commands.
  • Testing and debugging: Capture snapshots, inspect DOM attributes, run custom code, trace sessions, and diagnose failing Playwright tests.
  • Stateful workflows: Save and restore cookies, localStorage, sessionStorage, and isolated browser sessions for repeatable auth and multi-session tasks.
  • Use case: A developer can reproduce a broken checkout flow, inspect the relevant element attributes, mock an API response, and validate the fix in the same session.

Quick Start

Ask the skill to open the target site, inspect the page snapshot, and perform the next browser action you want automated.

Frequently Asked Questions about playwright-cli

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

FAQPage Schema
How do I debug a failing Playwright test and inspect the DOM?

Debug failing Playwright tests by capturing page snapshots, inspecting DOM attributes, and running custom code within the browser session. This command-driven approach isolates UI defects and reproduces browser behavior reliably for diagnosis.

Can I save and restore browser session state like cookies and localStorage for web testing?

Save and restore cookies, localStorage, and sessionStorage to manage isolated browser sessions during web testing. This stateful workflow enables repeatable authentication and multi-session tasks without manual re-login.

What is the best way to mock API responses when automating browser workflows?

Mock API responses directly within your browser automation workflow to validate UI fixes and test edge cases. This allows you to simulate backend behavior and reproduce broken flows without a live server.

How does request mocking and tracing work for web app testing?

Request mocking and tracing capture network interactions and browser execution paths during web app testing. This mechanism records session activity, enabling developers to diagnose failures and validate deterministic interactions.

Does this tool support capturing video and traces for reproducible browser state management?

Video capture and tracing are supported for reproducible browser state management. You can record deterministic interactions and diagnostics, ensuring that complex web app testing sessions are easily reviewed and verified.

Why use command-line browser automation over manual web inspection for UI debugging?

Command-line browser automation removes the friction of manual web inspection by executing deterministic interactions and diagnostics. It enables rapid UI debugging, element interaction, and reproducible browser behavior directly from the terminal.