enact/playwright

Automate browser interactions to extract text, HTML, or screenshots from web pages.

Updated Dec 30, 2025
One-click install
npx skills add https://github.com/while-basic/enact-template --skill enact-playwright
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: enact/playwright
Source: https://github.com/while-basic/enact-template/tree/main/test-tools/playwright
Command: npx skills add https://github.com/while-basic/enact-template --skill enact-playwright

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright-core.

What problem does it solve?

Automates browser interactions to extract content or screenshots from web pages, reducing manual QA and data collection time.

Core Features & Use Cases

  • Navigate to arbitrary URLs
  • Extract page text and HTML
  • Take full-page screenshots for visual verification
  • Use optional CSS selectors to target specific elements

Quick Start

enact run ./playwright --args '{"url": "https://example.com"}' enact run ./playwright --args '{"url": "https://example.com", "action": "screenshot"}' enact run ./playwright --args '{"url": "https://example.com", "selector": "h1"}'

Frequently Asked Questions about enact/playwright

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

FAQPage Schema
How do I automate browser interactions to extract text from web pages?▼

To automate browser interactions for text extraction, navigate to a target URL using Playwright and specify the text action to pull readable content directly from the web page.

Can I take full-page screenshots with Playwright for visual verification?▼

Yes, you can take full-page screenshots with Playwright for visual verification by passing the screenshot action in your command arguments alongside the target URL.

How do I extract specific HTML elements using CSS selectors during web scraping?▼

To extract specific HTML elements during web scraping, include an optional CSS selector in your Playwright arguments to target and pull content from designated page elements.

Does browser automation with Playwright-core support containerized execution?▼

Yes, browser automation with Playwright-core supports containerized execution, providing a defined command pattern to isolate and run web scraping or screenshot tasks securely.

What is the best way to capture raw HTML from arbitrary URLs programmatically?▼

The best way to capture raw HTML from arbitrary URLs programmatically is using browser automation to visit the link and execute an HTML extraction action against the page.