Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Browser automation skill using Playwright and Node.js scripts. Handles JavaScript-heavy sites, form interactions, screenshots, and data scraping. Run scripts directly with `node script.mjs`.
Gives full programmatic control over browser behavior for complex sites where simple HTTP fetching fails due to JavaScript rendering or dynamic content.
When to use it
- Scraping data from JavaScript-rendered pages
- Taking full-page screenshots of websites
- Automating login and form submission flows
- Extracting structured data from news or listing sites
- Maintaining persistent browser sessions across runs
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: scrape the top 5 stories from Hacker News
- 1Create a script in tmp/ using the scrape template
- 2Launch a headless Chromium browser with Playwright
- 3Navigate to news.ycombinator.com
- 4Extract story titles and URLs using page.$$eval on .titleline > a
- 5Log results as JSON and close the browser
A JSON array of 5 objects each with title and url fields printed to stdout