playwright-cli

Automate browser interactions and generate Playwright test code via CLI.

147|28|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/linaproai/linapro --skill playwright-cli-linaproai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/linaproai/linapro/tree/main/.agents/skills/playwright-cli
Command: npx skills add https://github.com/linaproai/linapro --skill playwright-cli-linaproai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manual browser testing, repetitive web interactions, and debugging flaky UI tests are time-consuming and error-prone without a dedicated automation tool. This Skill eliminates that friction by providing a complete guide to using the Playwright CLI for all browser automation and testing needs.

Core Features & Use Cases

  • Full Browser Automation: Navigate to web pages, interact with elements (click, type, hover), take screenshots, and manage multiple tabs using simple CLI commands.
  • Playwright Test Support: Run and debug Playwright test suites, auto-generate reusable TypeScript test code from browser interactions, and capture execution traces or videos to reproduce flaky test failures.
  • Advanced Browser Workflows: Run isolated concurrent browser sessions, mock network requests, manage browser storage (cookies, localStorage), and handle complex iframe or multi-tab scenarios.
  • Real-World Use Case: A developer can use this Skill to automate end-to-end testing of a user registration flow, mock a slow API response to test loading states, and export the recorded interactions as a Playwright test file for continuous integration.

Quick Start

Use the playwright-cli skill to automate a login flow for your web app, capture a snapshot of the dashboard after login, and save the authenticated browser state to reuse for subsequent test runs.

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 and capture execution traces for flaky UI tests?

You can automate web testing and debug flaky UI tests by using the Playwright CLI to execute deterministic browser actions, capture execution traces, and record session videos to reproduce failures.

How do I generate reusable test code from browser interactions?

You can generate reusable TypeScript test code from user interactions by running Playwright CLI commands that record your browser actions and export them directly into a test file.

Can I mock network requests to test loading states in my web app?

Yes, you can mock network requests using Playwright CLI to simulate slow API responses, allowing you to test loading states and handle complex iframe or multi-tab scenarios.

How do I save and reuse authenticated browser state for subsequent test runs?

You can save authenticated browser state, including cookies and localStorage, via Playwright CLI and reuse that session storage to skip login flows in subsequent test runs.

Does Playwright CLI support running isolated concurrent browser sessions?

Yes, Playwright CLI supports running isolated concurrent browser sessions, allowing you to manage multiple tabs, handle complex browser workflows, and capture snapshots simultaneously.

What is the best way to automate a login flow and capture a dashboard snapshot?

The best way to automate a login flow and capture a dashboard snapshot is using Playwright CLI to navigate pages, interact with elements, take screenshots, and manage browser state.