Playwright Test Automation
@Prathameshs
Experiments on using mcp for web automation using playwright / puppeteer map servers
Overview
What is Playwright Test Automation?
A test automation project for web applications using Playwright with Python. It provides a structured approach to writing, organizing, and scaling tests via the Page Object Model and pytest.
How to use Playwright Test Automation?
Clone the repository, install Python dependencies with pip install -r requirements.txt, then run playwright install to download browsers. Execute all tests with pytest tests/.
Key features of Playwright Test Automation
- Uses Playwright with Python for browser automation
- Page Object Model via a
BasePageclass - Organized with
tests/andpages/directories - Runs tests using pytest
- Scalable and maintainable test structure
Use cases of Playwright Test Automation
- Automate end‑to‑end tests for a web application
- Structure test suites with reusable page objects
- Run tests locally during development or in CI
- Verify UI behavior and assert expected outcomes
FAQ from Playwright Test Automation
What tools are used?
Playwright (browser automation) with Python, organized using pytest for test execution and a Page Object Model pattern.
How do I install and run the tests?
Clone the repo, run pip install -r requirements.txt, then playwright install to install browsers. Execute tests with pytest tests/.
What is the project structure?
It includes a tests/ folder for test cases (e.g., test_example.py) and a pages/ folder with a base_page.py defining common element interaction methods.
Can I contribute to this project?
Yes. Contributions are welcome via pull requests or by opening issues for enhancements or bug fixes.
What license is used?
The project is licensed under the MIT License.