Run automated tests or interactions on a web application using Playwright.
This skill provides a structured way to perform automated testing and interaction on web applications using Playwright. It includes helpers for running tests with local development servers and common debugging patterns.
npm run dev) automatically during tests.Ensure playwright is installed in your environment:
pip install playwright
playwright install chromium
Use the included with_server.py script to wrap your test execution. This ensures the server is running before the tests start and is cleaned up afterward.
python3 scripts/with_server.py --server "npm run dev" --port 5173 -- python3 tests/my_test.py
element_discovery.py example to map out clickable elements on a page.scripts/: Utility scripts for environment management.examples/: Reference implementations for common testing tasks.SKILL.md: This documentation.