playwright-cli

Automate browser interactions and capture screenshots using Playwright CLI.

1.4k|181|Updated Feb 22, 2024
One-click install
npx skills add https://github.com/oss-apps/split-pro --skill playwright-cli-oss-apps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/oss-apps/split-pro/tree/main/.opencode/skills/playwright-cli
Command: npx skills add https://github.com/oss-apps/split-pro --skill playwright-cli-oss-apps

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manual navigation, form handling, and data extraction from web pages are time‑consuming and error‑prone, especially for testing and repetitive workflows.

Core Features & Use Cases

  • Navigation & Interaction: Open URLs, click elements, type text, handle dialogs, and manage multiple tabs.
  • State Management: Save and load cookies, localStorage, sessionStorage, and entire browser sessions.
  • Testing & Debugging: Record traces, capture screenshots and videos, and mock network requests for reliable UI testing.

Quick Start

Use the playwright-cli skill to open https://example.com, fill the login form, submit, and capture a screenshot.

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 form filling without manual navigation?

Automating web testing and form filling is done by leveraging the Playwright CLI to control browsers, open URLs, click elements, type text, and handle dialogs for repetitive UI workflows.

Can I capture screenshots and record traces during browser automation?

Yes, you can capture screenshots and record traces during browser automation by utilizing Playwright's built-in testing and debugging features to record videos and capture session traces.

Does browser automation work with Chromium, Firefox, and WebKit sessions?

Browser automation supports Chromium, Firefox, and WebKit sessions by leveraging the Playwright CLI to manage multiple tabs and control cross-browser interactions for web testing.

How do I manage browser state and cookies for automated data extraction?

Managing browser state for data extraction involves using Playwright to save and load cookies, localStorage, sessionStorage, and entire browser sessions across automated navigation tasks.

Can I mock network requests for reliable UI testing?

Yes, you can mock network requests for reliable UI testing by applying Playwright's network mocking capabilities to ensure consistent and controlled automated web application testing.