webapp-testing

Test local web applications with Playwright scripts and managed server lifecycles.

Updated Aug 17, 2026
One-click install
npx skills add https://github.com/prabaljainn/my-claude-code-setup --skill webapp-testing-prabaljainn
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/prabaljainn/my-claude-code-setup/tree/main/claude/skills/webapp-testing
Command: npx skills add https://github.com/prabaljainn/my-claude-code-setup --skill webapp-testing-prabaljainn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Testing local web applications requires manually starting dev servers, waiting for them to be ready, writing browser automation, and cleaning up processes afterward. This Skill automates that workflow so you can verify frontend functionality, debug UI behavior, capture screenshots, and inspect browser logs without the setup overhead. ## Core Features & Use Cases - Server Lifecycle Management: The with_server.py helper starts one or more servers (e.g., backend plus frontend), waits for each port to be ready, runs your automation, and shuts everything down cleanly. - Playwright Automation Patterns: Guidance for writing synchronous Python Playwright scripts, including the reconnaissance-then-action pattern for discovering selectors on dynamic pages after networkidle. - Ready-Made Examples: Reference scripts for element discovery, static HTML automation via file:// URLs, and console log capture. - Use Case: You have a React frontend on port 5173 and a Python backend on port 3000. Use the helper to boot both, run a Playwright script that clicks through the UI, and capture a screenshot verifying the result. ## Quick Start Ask the AI to test your local web app by starting the dev server with the with_server helper and writing a Playwright script that navigates to the page, waits for networkidle, and takes a screenshot.

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 app with Playwright in Python?▼

Write a synchronous Playwright 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 if it is not already running.

How do I run Playwright tests that need multiple servers?▼

Pass multiple --server and --port pairs to with_server.py, one per server, followed by your automation command after a double dash. The script starts each server, waits for its port to accept connections, runs your command, then terminates all servers.

Why does my Playwright script fail to find elements on dynamic pages?▼

The script likely inspects the DOM before JavaScript finishes rendering. Call page.wait_for_load_state('networkidle') after navigation, then take a screenshot or dump page content to discover the actual rendered selectors before acting.

Can Playwright automate static HTML files without a server?▼

Yes, navigate to a file:// URL built from the absolute path of the HTML file instead of starting a server. You can then click elements, fill forms, and capture screenshots exactly as with a hosted 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 review.