mcp-driven-web-automation
Experiments on using mcp for web automation using playwright / puppeteer map servers
GitHubスター
0
ユーザー評価
未評価
お気に入り
0
閲覧数
12
フォーク
0
イシュー
0
README
Playwright Test Automation
This project is designed for test automation of a web application using Playwright with Python. It provides a structured approach to writing and organizing tests, making it easier to maintain and scale.
Project Structure
playwright-test-automation
├── tests
│ ├── test_example.py
│ └── __init__.py
├── pages
│ └── base_page.py
├── requirements.txt
├── pytest.ini
└── README.md
Setup Instructions
Clone the repository:
git clone <repository-url> cd playwright-test-automation
Install dependencies:
Ensure you have Python installed, then run:pip install -r requirements.txt
Install Playwright browsers:
After installing the dependencies, run:playwright install
Usage
To run the tests, use the following command:
pytest tests/
Test Structure
- tests/test_example.py: Contains test cases that utilize Playwright's API to interact with the web application and assert expected outcomes.
- pages/base_page.py: Defines a
BasePage
class that serves as a foundation for all page objects, including common methods for interacting with web elements.
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
License
This project is licensed under the MIT License. See the LICENSE file for more details.