🧪 Testing Automation MCP
This skill empowers AI Agents to autonomously write, execute, and debug E2E tests using the official Playwright MCP Server. It transforms passive testing into an active, agentic workflow.
🚀 Capabilities
- •Browser Control: Navigate URLs, click elements, fill forms, and handle dialogs via MCP.
- •Visual Verification: Capture screenshots and trace files for debugging.
- •Self-Healing: Analyze failure logs and rewrite selector logic automatically.
- •Cross-Browser: Execute tests on Chromium, Firefox, and WebKit.
🛠️ MCP Toolset (Playwright)
| Tool | Description | Usage |
|---|---|---|
playwright_navigate | Go to a specific URL. | {"url": "http://localhost:3000"} |
playwright_click | Click an element by selector. | {"selector": "button[type='submit']"} |
playwright_fill | Fill input fields. | {"selector": "#email", "value": "test@example.com"} |
playwright_screenshot | Take a screenshot of the viewport. | {"path": "debug/error.png"} |
playwright_evaluate | Run custom JS in the browser. | {"script": "return document.title"} |