webapp-testing

Test local web applications using Playwright browser automation scripts.

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

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 automates browser interactions with Playwright so you can validate functionality, inspect rendered DOM, and capture screenshots or console logs programmatically. ## 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: Navigate to a page, wait for networkidle, inspect the rendered DOM or take screenshots, then act on discovered selectors. - Example Scripts: Ready-made patterns for element discovery, static HTML automation via file:// URLs, and console log capture. - Use Case: You have a React dev server on port 5173 and want to verify a login form works. Run the helper to start the server, then execute a Playwright script that fills the form, submits it, and screenshots the result. ## Quick Start Ask the AI to test your local web app by starting the dev server with the helper script and writing a Playwright automation that navigates to the page, waits for it to load, and captures 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 application with Playwright?

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

How to run multiple servers for frontend and backend testing?

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

Why does Playwright find no elements on my dynamic web app?

Dynamic apps render content via JavaScript after initial page load, so inspecting the DOM too early returns nothing. Always 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 automation?

Register a handler with page.on('console', handler) before navigating. Each console message is passed to your callback, where you can print or save it to a log file for later debugging.