What problem does it solve?
This Skill provides a toolkit for automating the testing of local web applications using Playwright, enabling reliable UI validation during development.
Core Features & Use Cases
- Interact with local web apps using Playwright to verify frontend functionality.
- Debug UI behavior, inspect rendered pages, and capture screenshots for visual regression checks.
- View browser logs and monitor network activity to diagnose issues during automated runs.
- Quick-startable workflow with the built-in server helper to orchestrate local servers for end-to-end tests.
Quick Start
Run a minimal test that starts a local server and executes a Playwright automation:
python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
page = browser.new_page()
page.goto('http://localhost:5173')
page.wait_for_load_state('networkidle')
browser.close()