LaunchKit · 2026
Back to Skills

playwright-skill

Complete browser automation with Playwright.

0
892 downloads
by @vmercel

Setup & Installation

openclaw skills install @vmercel/playwright-skill

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install playwright-skill

What This Skill Does

Playwright-based browser automation that auto-detects running dev servers, writes test scripts to /tmp, and executes them with a visible browser by default. Handles page testing, form submission, login flows, responsive design checks, and link validation. Scripts are parameterized and cleaned up automatically by the OS.

Auto-detecting dev servers eliminates hardcoded URLs, and writing scripts to /tmp keeps test code out of the project directory.

When to use it

  • Testing login redirects on a local dev server
  • Checking layout across desktop, tablet, and mobile viewports
  • Finding broken external links on a web page
  • Filling and submitting forms to verify success states
  • Taking full-page screenshots before a design review

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: 'Test if the login flow redirects correctly'

AGENT
  1. 1Runs detectDevServers() to find the active local server
  2. 2Asks user to confirm which server to test if multiple are found
  3. 3Writes a login automation script to /tmp/playwright-test-login.js with the detected URL as a constant
  4. 4Executes the script via node run.js from the skill directory
  5. 5Reports the redirect outcome and any console errors
OUTPUT

Login flow confirmed: form submission redirects to /dashboard