webapp-testing

Tests local web applications using Playwright scripts with automated server lifecycle management.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill webapp-testing-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webapp-testing
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/assignment-generator/antigravity-skills-main/antigravity-skills-main/skills/webapp-testing
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill webapp-testing-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Testing local web applications requires manually starting servers, waiting for them to be ready, and writing browser automation code, which is repetitive and error-prone when verifying frontend behavior or debugging UI issues. ## Core Features & Use Cases - Automated Server Management: The with_server.py helper starts one or more servers, waits for port readiness, runs your automation, and cleans up processes afterward. - Playwright Browser Automation: Write Python scripts to navigate pages, capture screenshots, inspect the DOM, and capture console logs against running applications. - Reconnaissance Workflow: Follow a decision tree for static versus dynamic apps, waiting for networkidle before inspecting rendered selectors. - Use Case: Verify that a React frontend and Python backend work together by launching both servers and running a Playwright script that clicks through the UI and checks rendered output. ## Quick Start Use the webapp-testing skill to start my dev server and verify the login page renders correctly with Playwright.

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 networkidle 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?

Pass multiple --server and --port pairs to with_server.py, such as one for a backend on port 3000 and a frontend on port 5173. The helper starts each server, waits for its port to accept connections, then runs your automation command.

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

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

Can Playwright capture browser console logs during automation?

Yes, Playwright supports capturing console messages by attaching event listeners to the page object in your Python script. The skill's examples directory includes a console_logging.py pattern demonstrating this approach.

Should I read the helper script source code before using it?

No, run the script with --help first to see usage and treat it as a black-box tool. The scripts are large and reading them consumes context unnecessarily unless you need a customized solution.