webapp-testing

Automate testing of local web applications using Python Playwright scripts.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-skills --skill webapp-testing-clay-hhk
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/Clay-HHK/claude-skills/tree/main/webapp-testing
Command: npx skills add https://github.com/Clay-HHK/claude-skills --skill webapp-testing-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve? Manually verifying frontend behavior and debugging UI issues in local web applications is slow and repetitive. This Skill automates browser interactions with Playwright so you can test functionality, capture screenshots, and inspect console logs without manual clicking. ## Core Features & Use Cases - Server Lifecycle Management: The scripts/with_server.py helper starts one or more servers (e.g., backend plus frontend), waits for readiness, runs your automation, and cleans up afterward. - Reconnaissance-Then-Action Workflow: Inspect the rendered DOM after networkidle, identify selectors, then execute actions against dynamic webapps. - Example Patterns: Ready-made examples for element discovery, static HTML automation via file:// URLs, and console log capture. - Use Case: You are developing a React app on port 5173 and need to verify a form submission flow. The Skill starts the dev server, navigates to the page, fills the form, clicks submit, and saves a screenshot of the result. ## Quick Start Use the webapp-testing skill to start my dev server with npm run dev on port 5173 and write a Playwright script that screenshots the homepage.

Frequently Asked Questions about webapp-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a local web application with Playwright?▼

Write a Python script using sync_playwright, launch Chromium in headless mode, navigate to your localhost URL, and wait for the networkidle load state before interacting with elements. Use the with_server.py helper to start your dev server automatically before the script runs.

How to run Playwright tests against a dev server that is not running yet?▼

Use the with_server.py helper script with --server and --port flags to start your server, wait for the port to respond, then run your automation command. It supports multiple servers, such as a backend on port 3000 and a frontend on port 5173, and cleans up processes afterward.

Why does Playwright find no elements on my dynamic webapp page?▼

Dynamic apps render content via JavaScript after initial page load, so inspecting the DOM too early returns nothing. Call page.wait_for_load_state('networkidle') before querying selectors or taking screenshots to ensure the page has finished rendering.

Can Playwright automate static HTML files without a server?▼

Yes, Playwright can open local HTML files directly using file:// URLs built from the absolute file path. You can then click elements, fill forms, and capture screenshots exactly as you would with a served page.

How do I capture browser console logs during Playwright automation?▼

Register a handler with page.on('console', handler) before navigating, and append each message's type and text to a list. After the session, write the collected messages to a log file for later inspection.