playwright-cli

Automate browser interactions for web testing, form filling, screenshots, and data extraction.

Updated Apr 21, 2023
One-click install
npx skills add https://github.com/tuliosouza99/CartolaPy --skill playwright-cli-tuliosouza99
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/tuliosouza99/CartolaPy/tree/main/.agents/skills/playwright-cli
Command: npx skills add https://github.com/tuliosouza99/CartolaPy --skill playwright-cli-tuliosouza99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a command-line way to automate browser interactions so users can test web apps, fill forms, capture screenshots, and extract data without writing full Playwright test suites.

Core Features & Use Cases

  • Interactive CLI Control: Open browsers, navigate pages, click, type, upload files, and manage tabs with simple commands.
  • Advanced Automation Tools: Record snapshots, run custom Playwright code, mock network requests, manage storage state, trace sessions, and record videos for debugging.
  • Use Case: QA engineers can reproduce and record flaky UI bugs, devs can scrape structured data across pages, and automation engineers can mock APIs to validate front-end behavior.

Quick Start

Use playwright-cli to open https://example.com, take a snapshot, fill a form field, and save the session state.

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 for web scraping without writing full test suites?

Browser automation for web scraping can be done via a command-line interface to navigate pages, click, type, and extract data without writing full test suites.

Can I mock network requests to validate front-end behavior during web testing?

Yes, you can mock network requests to validate front-end behavior by applying request mocking scenarios to simulate API responses during browser automation workflows.

How do I save and load session state for browser automation tasks?

Session management for browser automation tasks is handled by saving and loading storage state, allowing you to preserve authentication and session isolation across runs.

What is the best way to reproduce and record flaky UI bugs for QA workflows?

Reproducing and recording flaky UI bugs for QA workflows is best achieved by capturing snapshots, enabling tracing, and recording video during interactive browser sessions.

Does this approach support running custom Playwright code for advanced debugging?

Yes, advanced debugging supports running custom Playwright code, allowing automation engineers to execute specific scripts and mock APIs to validate front-end behavior.

When do I need request mocking and session isolation in web testing?

Request mocking and session isolation are needed in web testing when validating independent front-end behavior, requiring storage state save/load and route mocking to prevent cross-test interference.