What problem does it solve?
This Skill provides a robust toolkit for interacting with and testing local web applications, streamlining the process of verifying frontend functionality and debugging UI behavior.
Core Features & Use Cases
- Automated Testing: Write Python scripts using Playwright to automate browser interactions, test UI elements, and verify application logic.
- Debugging Support: Capture screenshots and browser console logs to aid in identifying and resolving issues.
- Server Management: Includes a helper script to manage the lifecycle of local development servers, ensuring they are running before tests execute.
- Use Case: Automatically test a new feature in your React frontend by writing a Playwright script that navigates to the page, fills out a form, submits it, and asserts that the expected success message appears.
Quick Start
Run python scripts/with_server.py --server "npm run dev" --port 5173 -- python your_automation.py to start your frontend server and then execute your Playwright automation script.