playwright-cli

Automate browser interactions for web testing, form filling, screenshots, and data extraction.

Updated Jun 1, 2023
One-click install
npx skills add https://github.com/ErebusBat/chezmoi --skill playwright-cli-erebusbat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-cli
Source: https://github.com/ErebusBat/chezmoi/tree/main/dot_config/opencode/skill/playwright-cli
Command: npx skills add https://github.com/ErebusBat/chezmoi --skill playwright-cli-erebusbat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates repetitive browser-based tasks, such as form filling, data extraction, and taking screenshots, saving significant time and effort in web testing and automation.

Core Features & Use Cases

  • Browser Automation: Control browsers programmatically for testing, scraping, and form submission.
  • Interaction: Fill forms, click elements, navigate pages, and interact with web elements using various locators.
  • Data Handling: Save page states, cookies, and local/session storage.
  • Screenshots & PDFs: Capture visual representations of web pages.
  • Use Case: Automate the process of logging into a web application, filling out a complex form, and submitting it, then taking a screenshot of the confirmation page.

Quick Start

Open the website https://example.com and then click on the element with the ID 'submit-button'.

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 for web testing and form filling?

You can automate browser interactions by controlling browsers programmatically to navigate pages, fill forms, click elements, and simulate keyboard or mouse inputs using various locators for web testing and data extraction.

Can I capture screenshots and save page states during web scraping?

Yes, during web scraping you can capture visual representations of web pages through screenshots or PDFs, and persist page states by saving cookies alongside local and session storage.

Do I need Node.js and npm to run playwright-cli commands?

Yes, you need Node.js and npm installed in your environment because the tool requires them for the npx fallback execution mechanism to run browser automation commands.

What is the best way to manage tabs and mock network requests in browser automation?

For browser automation, you can manage browser tabs and mock network requests directly by utilizing built-in debugging tools and network mocking capabilities to intercept and simulate interactions during web testing.

How do I extract data and fill out a complex web form programmatically?

You extract data and fill out a complex web form programmatically by using browser automation to locate web elements, input text values, and submit the form, capturing a screenshot of the confirmation page as a result.