mcpField
P
Playwright Test Automation

Playwright Test Automation

Local
github.com/PrathameshsProductivity0Updated 73w ago

About Playwright Test Automation

A Python project for organizing and running web application tests with Playwright. It uses page objects and pytest, while its tagline describes experiments with MCP-based browser automation.

Key features

  1. 01Python web application tests
  2. 02Playwright browser interaction
  3. 03Reusable base page object
  4. 04pytest test execution

Use cases

  1. 01Automating web application checks
  2. 02Grouping tests around reusable page methods

MCP support

The tagline mentions experiments with MCP for web automation using Playwright or Puppeteer map servers, but the README describes the Python Playwright tests and gives no MCP server implementation details.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project 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

  1. Clone the repository:

    git clone <repository-url>
    cd playwright-test-automation
    
  2. Install dependencies: Ensure you have Python installed, then run:

    pip install -r requirements.txt
    
  3. 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.