webapp-testing

Test local web applications with Playwright browser automation scripts.

6|1|Updated Sep 3, 2026
One-click install
npx skills add https://github.com/jasonzhu0922-sketch/agentloop --skill webapp-testing-jasonzhu0922-sketch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/jasonzhu0922-sketch/agentloop/tree/main/packages/agentloop-skills/skills/webapp-testing
Command: npx skills add https://github.com/jasonzhu0922-sketch/agentloop --skill webapp-testing-jasonzhu0922-sketch

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Verifying that a local web application actually works in a browser requires manual clicking, screenshotting, and log inspection, which is slow and error-prone. This Skill automates frontend verification, UI debugging, screenshot capture, and browser log collection using Python Playwright scripts. ## 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 their ports to be ready, runs your automation, and cleans up afterward. - Reconnaissance-Then-Action Pattern: Navigate to a page, wait for networkidle, inspect the rendered DOM or take a screenshot, then act on discovered selectors for dynamic webapps. - Ready-Made Examples: Reference scripts cover element discovery, static HTML automation via file:// URLs, and console log capture. - Use Case: You just built a React frontend on port 5173 and want to confirm the login form works. Run the helper to start the dev server, then execute a Playwright script that fills the form, submits it, and saves a screenshot of the result. ## Quick Start Use the webapp-testing skill to start my dev server and verify the login page at localhost:5173 renders and submits 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?

Write a Python script using sync_playwright, launch Chromium in headless mode, navigate to your local server 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 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 one or more servers, wait for their ports to accept connections, then run your automation command. It terminates the servers automatically when finished.

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.

Can Playwright capture browser console logs during automation?

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

Can I automate static HTML files without running a server?

Yes, navigate to the file using a file:// URL built from the absolute path of the HTML file. Playwright loads it directly in the browser, and you can interact with elements and take screenshots as usual.