P

Playwright Browser Automation

General-purpose browser automation with Playwright for testing pages, forms, responsive design, and UX validation

Home/Dev/Playwright Browser Automation

WhatIsIt

A general-purpose browser automation skill that enables Claude to write and execute custom Playwright scripts for your specific needs. Unlike pre-built testing frameworks, Claude dynamically generates tailored automation code on-the-fly for any task - from simple page tests to complex multi-step flows. The browser runs visibly by default for easy debugging and verification.

HowToUse

The skill follows a conversational workflow:

  1. Describe Your Need - Simply tell Claude what you want to test or automate (e.g., "Test the homepage", "Check if the contact form works", "Verify the signup flow")

  2. Auto-Detection - The skill automatically detects running development servers on your machine. If testing an external site, Claude will ask for the URL.

  3. Code Generation - Claude writes custom Playwright code tailored to your specific request and saves it to /tmp/playwright-test-*.js

  4. Execution - The script executes via a universal executor (run.js) that handles proper module resolution. The browser opens visibly by default so you can watch the automation in real-time.

  5. Results - View console output, screenshots, and any captured data. Test files are automatically cleaned from /tmp by your OS.

No configuration files, no pre-built tests - just natural language requests that Claude transforms into working automation code.

KeyFeatures

  • Custom code generation - Claude writes fresh Playwright scripts tailored to your exact request, not limited to templates
  • Visible browser by default - Watch automation execute in real-time with `headless: false` for easy debugging
  • Auto-detects dev servers - Automatically finds and tests your local development server
  • Zero module resolution errors - Universal executor ensures proper module access without configuration
  • Progressive API documentation - Concise SKILL.md with full API reference loaded only when needed
  • Safe temp file management - Scripts written to /tmp and auto-cleaned by your OS
  • Works with any site - Test local development servers or external websites
  • Comprehensive helpers - Optional utility functions available for common tasks when needed
ViewOnGitHub

GithubStats

Stars
Forks
LastUpdate
Author
lackeyjb
License
MIT
Version
4.0.0

Categories

Dev
Testing

Tags

playwright
browser-automation
e2e-testing
web-testing
automation

Features

CodeExecution

RelatedSkills

MoreFrom