playwright-cli

Automate browser interactions and testing workflows using the Playwright CLI.

3|5|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/sparkfabrik/sf-awesome-copilot --skill playwright-cli-sparkfabrik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/sparkfabrik/sf-awesome-copilot/tree/main/skills/system/playwright-cli
Command: npx skills add https://github.com/sparkfabrik/sf-awesome-copilot --skill playwright-cli-sparkfabrik

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automate browser interactions, testing flows, and data extraction to reduce manual tasks, speed up QA, and improve reliability.

Core Features & Use Cases

  • Open and navigate pages using playwright-cli open and goto for rapid page access and routing.
  • Interact with page elements, take screenshots, generate traces, and manage storage state for repeatable tests.
  • Common use cases include automated login flows, form submissions, visual checks, and evidence gathering for documentation.

Quick Start

Launch a browser session and navigate to a page with the command playwright-cli open https://example.com.

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 tasks and capture screenshots with Playwright?

To automate browser tasks and capture screenshots, you can use the Playwright CLI to open a URL, navigate pages, interact with elements, and execute screenshot commands for visual checks and evidence gathering.

Can I manage storage state for repeatable automated login flows?

Yes, you can manage browser storage state to maintain repeatable automated login flows. The Skill supports state-save and state-load commands to persist session data across multiple pages and testing workflows.

Do I need to install the Playwright CLI binary to run browser automation scripts?

Yes, running browser automation requires the Playwright CLI binary installed locally or accessible via npx @playwright/cli. No additional dependencies are required beyond this binary to execute commands.

How does tracing work for web scraping and browser automation debugging?

Tracing works by recording browser interactions during web scraping and automation sessions. You use the tracing command to generate detailed execution traces that help debug single-page and multi-page application testing workflows.

What is the best way to generate PDFs and videos during browser testing?

The best way to generate PDFs and videos during browser testing is using the pdf, video-start, and video-stop commands provided by the Playwright CLI to capture page outputs and record automated testing sessions.

Does this approach support resizing the browser viewport for multi-page app testing?

Yes, the approach supports resizing the browser viewport for multi-page app testing. You use the resize command to adjust screen dimensions during automated workflows and visual checks across single-page and multi-page applications.