playwright-cli

Automate browser interactions via a Playwright command-line interface.

1|3|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/CodeGeneration-2020/cgs-team-claude-setup --skill playwright-cli-codegeneration-2020
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/CodeGeneration-2020/cgs-team-claude-setup/tree/main/.claude/skills/_guides.playwright-cli
Command: npx skills add https://github.com/CodeGeneration-2020/cgs-team-claude-setup --skill playwright-cli-codegeneration-2020

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows you to automate browser interactions directly from your command line, eliminating the need to write extensive test scripts for common web automation tasks.

Core Features & Use Cases

  • Interactive Browser Control: Navigate, fill forms, click elements, and take screenshots using simple CLI commands.
  • Test Generation: Record your actions and generate Playwright code for more complex scenarios.
  • Debugging Tools: Monitor console logs, network requests, and create detailed traces for debugging.
  • Use Case: Quickly test a login flow by typing commands like playwright-cli open https://example.com/login, playwright-cli fill e1 "[email protected]", and playwright-cli click e3.

Quick Start

Open the website example.com and take a screenshot of the current page.

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 without writing full test scripts?

You can automate browser interactions by executing simple CLI commands for navigation, form filling, and element clicking. This approach eliminates the need to write extensive Playwright test scripts for common web automation tasks.

Can I generate Playwright code by recording my browser actions?

Yes, you can record your browser actions to generate Playwright code. This test generation feature captures your interactions and translates them into scripts for more complex automation scenarios.

How does CLI browser automation handle network mocking and device emulation?

CLI browser automation supports advanced features like device emulation and network mocking. These capabilities allow you to simulate different environments and intercept network requests for comprehensive end-to-end testing.

What debugging tools are available for web automation workflows?

Debugging tools for web automation include monitoring console logs and network requests. You can also create detailed traces to inspect and troubleshoot your browser interactions during testing workflows.

Can I take screenshots and generate PDFs from the command line?

Yes, you can take screenshots and generate PDFs directly from the command line. The CLI supports these outputs along with video recording to capture your browser automation sessions.

How do I manage sessions for end-to-end testing workflows?

You can manage sessions using simple CLI commands to maintain state across interactions. This session management supports comprehensive end-to-end testing and automation workflows.