What problem does it solve?
This Skill helps developers automate testing of local web applications using Python Playwright scripts, enabling repeatable UI checks, easier debugging, and automatic capture of browser logs and screenshots.
Core Features & Use Cases
- Automated server lifecycle management with scripts/with_server.py to start/stop local servers and run automation.
- Playwright-based UI testing: navigate pages, wait for network idle, capture logs and screenshots.
- Reference patterns: examples/ directory with sample scripts for console logging, element discovery, static HTML automation.
Quick Start
Use the skill to start a local server and run an automation script as shown below.
Start a single server and run automation:
python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py
Start multiple servers and run automation:
python scripts/with_server.py
--server "cd backend && python server.py" --port 3000
--server "cd frontend && npm run dev" --port 5173
-- python your_automation.py
Minimal automation example:
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')
# your automation logic
browser.close()