playwright-cli

Automate browser interactions to test and debug web UI flows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Maykesantos98/Fiap-Totvs --skill playwright-cli-maykesantos98
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/Maykesantos98/Fiap-Totvs/tree/main/.claude/skills/playwright-cli
Command: npx skills add https://github.com/Maykesantos98/Fiap-Totvs --skill playwright-cli-maykesantos98

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Playwright automation helps you reproduce UI interactions and troubleshoot web pages without manually clicking through fragile, time-consuming steps.

Core Features & Use Cases

  • Browser session control: Open, attach to, and manage isolated browser contexts with persisted state when needed.
  • Deterministic UI actions: Perform clicks, typing, form filling, navigation, keyboard/mouse operations, and element inspections via snapshots.
  • Debugging and evidence capture: Generate snapshots, run custom Playwright code, and collect traces/videos to understand failures precisely.

Quick Start

Use the playwright-cli skill to open a page and capture a snapshot, then click a targeted element using its snapshot reference.

Frequently Asked Questions about playwright-cli

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

FAQPage Schema
How do I automate browser interactions to debug web UI flows?

Automate browser interactions for UI debugging using Playwright CLI commands to execute deterministic clicks, typing, and navigation. This reproduces interactions and troubleshoots web pages without manual experimentation, capturing snapshots and traces for evidence.

What is the best way to capture UI snapshots during browser automation?

Capture UI snapshots during browser automation by executing the snapshot CLI command. This inspects elements via Playwright locator references, allowing you to target elements precisely for reliable clicks and form interactions without manual inspection.

Can I persist browser state across multiple Playwright automation sessions?

Persist browser state across sessions by opening and managing isolated browser contexts. This allows you to attach to existing sessions and maintain state when needed, ensuring deterministic UI actions and consistent end-to-end debugging scenarios.

How do I generate traces and videos for end-to-end debugging?

Generate traces and videos for end-to-end debugging by executing the tracing and video CLI commands. This collects evidence to understand failures precisely, capturing the exact UI interactions and browser automation steps that caused the issue.

Does request mocking work with Playwright CLI for UI testing?

Request mocking is supported within Playwright CLI for UI testing scenarios. You can intercept and mock network requests during browser automation to test application behavior under controlled conditions using custom Playwright code via the eval command.

Why does my click automation fail to target the correct element?

Click automation fails when locator references are inaccurate or dynamic. Use the snapshot command to inspect the UI and generate precise element references, ensuring deterministic browser control and reliable clicks without manual experimentation.