webapp-testing

Automate testing of local web applications using Python Playwright scripts.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/wolfmanstout/agent-skills --skill webapp-testing-wolfmanstout
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/wolfmanstout/agent-skills/tree/main/subtrees/skills/skills/webapp-testing
Command: npx skills add https://github.com/wolfmanstout/agent-skills --skill webapp-testing-wolfmanstout

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Testing local web applications manually is slow and error-prone, especially when verifying frontend behavior, debugging UI issues, or capturing browser state. This Skill provides a structured workflow for writing Playwright automation scripts, managing dev servers, and inspecting rendered pages. ## Core Features & Use Cases - Server Lifecycle Management: The with_server.py helper starts one or more servers (e.g., backend plus frontend), waits for readiness, runs your automation, and cleans up automatically. - Reconnaissance-Then-Action Pattern: Inspect the rendered DOM after networkidle, identify selectors, then execute actions against dynamic webapps. - Example Scripts: Ready-made patterns 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 launch both, then run a Playwright script that logs in, clicks through the dashboard, and captures screenshots and console logs for debugging. ## Quick Start Use the webapp-testing skill to start my dev server and write a Playwright script that verifies the login page renders correctly.

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 in Python?

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 do I run Playwright tests against multiple servers at once?

Pass multiple --server and --port flags to with_server.py, one pair per server. The script starts each server, waits for its port to accept connections, runs your automation command, then terminates all servers cleanly.

Why does Playwright find no elements on my dynamic webapp?

Dynamic apps render content via JavaScript after initial page load, so inspecting the DOM too early returns incomplete results. Call page.wait_for_load_state('networkidle') before querying selectors or taking screenshots.

Can Playwright automate static HTML files without a server?

Yes, navigate to a file:// URL pointing to the absolute path of your HTML file. Playwright loads it directly in Chromium, letting you click elements, fill forms, and capture screenshots without running any server.

How do I capture browser console logs during Playwright automation?

Register a handler with page.on('console', handler) before navigating. Each console message is passed to your callback, where you can print it or append it to a list for saving to a log file after the browser closes.