playwright-cli

Automate browser interactions and generate Playwright test code via CLI.

5|3|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/zebbern/termstack --skill playwright-cli-zebbern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/zebbern/termstack/tree/main/.github/skills/playwright/playwright-cli
Command: npx skills add https://github.com/zebbern/termstack --skill playwright-cli-zebbern

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates browser interactions and test generation via a CLI, translating user actions into Playwright commands.

Core Features & Use Cases

  • Comprehensive CLI-driven browser automation: open pages, interact with elements, fill forms, take screenshots, and generate tests without writing boilerplate scripts.
  • Debug, mock, and extend: support for tracing, network routing, request interception, multi-session management, and on-demand script execution with Run-Code.
  • Real-world workflow orchestration: capture reproducible test stories, integrate with CI, and iterate against real Next.js or web apps with live previews and deployments.

Quick Start

Install the CLI, open a page, and begin recording actions to automatically generate Playwright tests.

Frequently Asked Questions about playwright-cli

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

FAQPage Schema
How do I generate Playwright test code from my browser interactions?

You can generate Playwright tests by using the CLI to open a page and record actions like clicks and form fills. The CLI translates these user interactions into Playwright commands, automatically generating reproducible test scripts without manual boilerplate.

Can I manage multiple browser sessions and storage states in Playwright?

Yes, the CLI supports multi-session management for Playwright, allowing you to configure browser sessions and maintain storage state. You can orchestrate interactions across multiple contexts simultaneously for complex web testing workflows.

Does the Playwright CLI support network routing and request mocking?

Yes, the Playwright CLI supports network routing and request mocking. You can intercept network requests, mock responses, and configure routing rules to test web application behavior under controlled conditions without relying on live APIs.

What is the best way to automate web testing from the command line?

Automating web testing from the command line is best done via a CLI that translates user actions into Playwright commands. You can open pages, fill forms, take screenshots, and interact with elements directly, bypassing the need to write boilerplate automation scripts.

How do I take screenshots and capture snapshots during browser automation?

You can take screenshots and capture snapshots during browser automation by issuing dedicated CLI commands. The tool translates these requests into Playwright actions, capturing the visual state or DOM structure of the page at any point during your testing workflow.

Can I execute custom scripts on demand during a Playwright browser session?

Yes, you can execute custom scripts on demand during a Playwright browser session using the Run-Code feature. This allows on-demand script execution within an active session to debug, mock, or extend your browser automation workflow dynamically.