playwright-cli

Automates browser interactions and generates Playwright code from user actions.

426|199|Updated Aug 13, 2025
One-click install
npx skills add https://github.com/leonvanzyl/agentic-coding-starter-kit --skill playwright-cli-leonvanzyl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/leonvanzyl/agentic-coding-starter-kit/tree/main/.agents/skills/playwright-cli
Command: npx skills add https://github.com/leonvanzyl/agentic-coding-starter-kit --skill playwright-cli-leonvanzyl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Web testing and browser automation often require repetitive manual steps; playwright-cli automates page interactions and test generation from your actions.

Core Features & Use Cases

  • Open, navigate, and interact with web pages using a concise CLI
  • Record actions and auto-generate Playwright code for reuse
  • Manage browser sessions, network mocks, storage state, tracing, and video capture

Quick Start

Open a page with playwright-cli, interact with elements, and have the tool generate Playwright code from your actions.

Frequently Asked Questions about playwright-cli

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

FAQPage Schema
How do I automate web testing tasks like filling forms and clicking elements?

Playwright CLI automates browser tasks by providing a concise command line interface for opening pages, clicking elements, and filling forms. It records your interactions and auto-generates reusable Playwright test code from those actions.

Can I generate Playwright test code automatically from my manual browser actions?

Yes, you can generate Playwright test code automatically from manual browser actions. The tool records your interactions within a browser session and outputs reusable test code, eliminating the need to write automation scripts from scratch.

What is the best way to manage browser sessions and network mocks for web automation?

Managing browser sessions and network mocks for web automation is supported directly through the CLI. You can configure storage state, set up network mocks, and enable tracing or video capture to thoroughly test and debug page interactions.

Does browser automation with Playwright CLI require any external dependencies?

Browser automation with Playwright CLI does not require external dependencies to function. It operates independently to manage browser sessions, take snapshots, and generate test code without needing additional packages or libraries installed.

How do I take snapshots of web pages during automated testing?

Taking snapshots of web pages during automated testing is performed by executing the snapshot command within your active CLI browser session. This captures the current page state for review and debugging during your automation workflow.