playwright-cli
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Why use this skill?
Master web automation with playwright-cli. Navigate, extract data, fill forms, and test websites directly from your OpenClaw agent.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/david-evaristo/playwright-cli-2What This Skill Does
The playwright-cli skill provides a comprehensive browser automation engine for OpenClaw. It serves as a headless or interactive browser controller that maps DOM elements to actionable identifiers, enabling the AI to navigate, interact, and extract data from virtually any website. By using a ref-based snapshot system, the skill allows the agent to "see" the page structure, identify inputs, buttons, and links, and perform complex browser-based workflows without human intervention. From automated testing and form filling to bypassing complex authentication flows using stored cookies or local storage, this skill is the definitive tool for web-centric AI tasks.
Installation
To integrate this tool into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/david-evaristo/playwright-cli-2
Use Cases
- Automated Data Extraction: Scrape information from dynamic, JavaScript-heavy websites that standard crawlers cannot process.
- Web Application Testing: Perform E2E testing workflows, verify UI states, and validate form logic.
- Automated Administration: Manage sessions, log into web portals using saved auth states, and perform recurring tasks on admin dashboards.
- Content Archival: Generate high-fidelity screenshots or PDF reports of web pages for compliance and archival purposes.
- Mocking and Debugging: Intercept and mock network traffic to simulate different API responses during development.
Example Prompts
- "Open https://github.com/login, fill in my credentials using the element refs, and sign in. Once logged in, navigate to my repositories and list them."
- "Go to https://example-market.com, search for 'mechanical keyboard', click the first result, take a screenshot of the product page, and save it as product_review.png."
- "Open the web application, intercept all image requests to return a 404 error, and then perform a full snapshot to check for layout breakage."
Tips & Limitations
- Re-snapshotting: Always call
snapshotafter navigating or performing actions that trigger significant DOM updates to ensure element references remain accurate. - State Management: Use
state-saveandstate-loadto persist login sessions, which saves significant time compared to authenticating from scratch on every run. - Headless Limits: While highly efficient, remember that complex anti-bot protections (like Cloudflare Turnstile) may detect automated browser instances. Use standard wait times and natural interaction patterns to minimize detection risk.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-david-evaristo-playwright-cli-2": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, data-collection