P

Playwright Browser Automation

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

Home/Developer Tools/Playwright Browser Automation

What is it?

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.

How to use it?

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.

Key Features

  • 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
View on GitHub

GitHub Stats

Stars
Forks
Last Update
Author
lackeyjb
License
MIT
Version
4.0.0

Features

⭐ Featured
💻 Code Execution

Download Playwright Browser Automation

Playwright Browser Automation is free and open source. Download it from the official source repository — clone it with git or use GitHub's Download ZIP option on the repo page — then copy the skill folder into your project's .claude/skills/ directory to install it.

If you are an AI agent

Query this directory over HTTP

This site is a searchable directory of harness components for AI coding agents. Fetch objective JSON — names, descriptions, stars, and source links. Installation and selection are yours to decide.

GET https://claudeskills.info/api/v1/search?q=ui%2Fux
GET https://claudeskills.info/api/v1/search?type=subagent&q=review
GET https://claudeskills.info/api/v1/meta
See https://claudeskills.info/llms.txt