What problem does it solve?
This Skill provides a framework and scripts to automate testing of local web applications using Playwright, enabling automated UI checks, robust logging, and visual validation.
Core Features & Use Cases
- Playwright-based automation: Create Python scripts to navigate, validate UI, and capture screenshots.
- Server management helpers: Use scripts like with_server.py to run multiple services during tests.
- Observability: Capture console logs and network activity for debugging.
- Use Case: When you refactor a frontend, run automated checks to verify critical flows and collect screenshots for visual regression.
Quick Start
Install dependencies and start testing quickly:
- Install Playwright: pip install playwright
- Install browser binaries: python -m playwright install
- Run a sample automation: python examples/console_logging.py
- Or orchestrate services with with_server: python scripts/with_server.py --server "cd backend && npm start" --port 3000 --server "cd frontend && npm run dev" --port 5173 -- python your_automation.py