AuTeLipi/MCP_Server_Selenium_Playwright_QA
If you are the rightful owner of MCP_Server_Selenium_Playwright_QA and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Unified Web Testing MCP Servers for AI-Driven Browser Automation
๐ค MCP Server: Selenium + Playwright QA Automation
Unified Web Testing MCP Servers for AI-Driven Browser Automation
Revolutionizing QA workflows with Model Context Protocol integration
๐ Quick Start โข ๐ฏ Features โข ๐ Documentation โข ๐ค Contribute
๐ Project Overview
This project demonstrates how to orchestrate web-testing MCP (Model Context Protocol) servers (Selenium MCP and Playwright MCP) from a unified QA workspace, enabling AI agents to drive real browsers through natural language commands in modern IDEs like Cursor/VS Code or AI clients like Claude Desktop and Goose.
Why MCP for QA?
- ๐ ๏ธ Standardized Interface: Consistent API for AI agents across different automation frameworks
- ๐จโ๐ป Developer-Centric Workflow: Transform natural language prompts into executable test code instantly
- ๐ Framework Agnostic: Seamlessly switch between Selenium and Playwright without changing your approach
- ๐ฏ IDE Integration: Native support in modern development environments
๐ญ The Evolution of Testing
Gone are the days of writing hundreds of lines of boilerplate automation code. MCP QA Automation represents the next evolution in software testingโwhere AI agents understand your testing intent and translate it into precise browser actions across multiple frameworks.
๐ What Makes Us Different?
Unlike traditional automation tools that require extensive coding knowledge, our MCP-integrated approach allows you to:
- Speak in Plain English: Describe your test scenarios naturally
- Instant Code Generation: Watch AI transform your ideas into executable tests
- Cross-Framework Harmony: Seamlessly switch between Selenium and Playwright
- Visual Intelligence: AI-powered element recognition and interaction
๐ฏ Arsenal Features
๐ฎ AI-Powered Test Generation
# Simply describe what you want to test
"Test the login with invalid credentials and capture the error message"
# โ Generates complete test automation code
๐จ Multi-Framework Architecture
Framework | Language | Strengths |
---|---|---|
Playwright ๐ญ | Python | Modern, fast, reliable |
Selenium ๐ธ๏ธ | Java & Python | Industry standard, extensive support |
๐ช Smart Test Scenarios
- ๐ Authentication Testing: Login/logout flows with intelligent error detection
- ๐ Form Validation: Dynamic form testing with real-time feedback
- ๐ฑ Cross-Browser Compatibility: One test, multiple browsers
- ๐ธ Visual Regression: Automated screenshot comparison
๐ Launch Sequence
Step 1: Clone the Arsenal
git clone https://github.com/AuTeLipi/MCP_Server_Selenium_Playwright_QA.git
cd MCP_Server_Selenium_Playwright_QA
Step 2: Prepare Your Weapons
# Python Environment
pip install -r requirements.txt
playwright install
# Java Environment (for Selenium)
# Ensure Java 11+ and Maven are installed
Step 3: Configure MCP Integration
Create .cursor/mcp.json
in your IDE:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
},
"selenium": {
"command": "npx",
"args": ["-y", "@angiejones/mcp-selenium"]
}
}
}
Step 4: Launch Your First Mission
# Playwright Mission
python Module01_Automation_UsingPlaywright/vwo_invalid_login_test.py
# Selenium Mission
python Module02_Automation_UsingSelenium/vwo_invalid_login_selenium.py
๐๏ธ Mission Control Structure
๐๏ธ MCP_Server_Selenium_Playwright_QA/
โโโ ๐ญ Module01_Automation_UsingPlaywright/
โ โโโ ๐ฏ vwo_invalid_login_test.py
โ โโโ ๐ lab_guides/
โโโ ๐ธ๏ธ Module02_Automation_UsingSelenium/
โ โโโ โ Java_implementations/
โ โโโ ๐ Python_implementations/
โ โโโ ๐ธ execution_screenshots/
โโโ ๐ Module03_Push_Code_To_GitHub/
โ โโโ ๐ integration_guides/
โโโ โก Module04_Generate_Automation_Script/
โ โโโ ๐ค ai_generated_scripts/
โ โโโ ๐ templates/
โโโ โ๏ธ Configuration/
โโโ mcp.json
โโโ requirements.txt
๐งช Live Experiments
๐ฌ Test Case: VWO Login Validation
Objective: Validate error handling for invalid login attempts
AI Prompt: "Create a test that tries to login with wrong credentials on VWO and verifies the error message"
Generated Output:
- โ Automated browser launch
- โ Form interaction simulation
- โ Error message capture
- โ Screenshot documentation
- โ Assertion validation
๐ฌ Test Case: iDrive360 Signup Flow
Objective: Test comprehensive signup form validation
Results:
- ๐ฑ Country code selection testing
- ๐ Phone number format validation
- โ ๏ธ Real-time error feedback capture
- ๐ Form completion analytics
๐จ Visual Chronicles
Our tests don't just pass/failโthey tell stories through captured moments:
Test Phase | Visual Evidence |
---|---|
๐ Initial Load | Clean page state capture |
โจ๏ธ User Interaction | Form filling progression |
โ Error States | Validation message display |
๐ฏ Final Results | Success/failure documentation |
๐ง Advanced Configuration
Custom Test Data Factory
# Dynamic data generation for realistic testing
class TestDataFactory:
@staticmethod
def generate_invalid_credentials():
return {
"username": fake.email(),
"password": fake.password(length=8),
"expected_error": "Your email, password, IP address or location did not match"
}
Multi-Environment Support
# environments.yml
staging:
base_url: "https://staging.vwo.com"
timeout: 10000
production:
base_url: "https://vwo.com"
timeout: 5000
๐ค Join the Mission
For Contributors
- ๐ด Fork the repository
- ๐ฟ Create a feature branch (
feature/amazing-test-case
) - โจ Commit your changes with descriptive messages
- ๐ Push to your branch
- ๐ฏ Create a Pull Request with detailed description
For Testers
- ๐ Report bugs with detailed reproduction steps
- ๐ก Suggest new test scenarios
- ๐ Improve documentation
- ๐จ Share creative test implementations
๐ Hall of Fame
Created By
AuTeLipi - The Architect of Automated Excellence
Special Thanks
- Pramod Dutta for introducing MCP and opening new horizons in test automation
- Microsoft Playwright Team for MCP integration
- Angie Jones for Selenium MCP development
- The QA Community for continuous inspiration
๐ License & Disclaimer
This project is licensed under the MIT License - see the file for details.
Built with โค๏ธ for the QA community. May your tests be green and your bugs be few.