Browser automation and frontend testing and evaluation with Playwright MCP
Use this skill for browser automation, frontend testing, and UI validation using Playwright MCP tools.
✅ Use for:
❌ Do NOT use for:
You have access to all tools:
mcp__playwright__*browser_navigate - Navigate to URLsbrowser_snapshot - Get accessibility snapshot (better than screenshot for interactions)browser_take_screenshot - Capture visual statebrowser_click - Click elementsbrowser_type - Type into fieldsbrowser_select_option - Select dropdown optionsbrowser_fill_form - Fill multiple form fields at oncebrowser_console_messages - Check for console errorsbrowser_network_requests - Monitor network activitybrowser_evaluate - Run JavaScript in page contextbrowser_tabs - Manage browser tabsbrowser_wait_for - Wait for text or time1. Navigate to the updated page/component
2. Take a baseline screenshot
3. Test the new functionality step by step
4. Verify no existing features are broken
5. Test responsive behavior
6. Check accessibility compliance
1. Navigate to the page before changes
2. Take reference screenshots at multiple breakpoints
3. Apply code changes
4. Take new screenshots with same dimensions
5. Compare and report visual differences
1. Start at the entry point (homepage/landing)
2. Follow the complete user flow step by step
3. Test each interaction and transition
4. Verify the expected end state is reached
5. Check for any broken links or errors
[data-battle-participant="player"], [class*="diceContainer"])h2, div, span) or text contentstart.jpg, after-click.jpg)browser_snapshot for getting page structure for interactionsbrowser_take_screenshot for visual documentationwaitForTimeout() - use expect(element).toBeVisible() instead1. Navigate to page with component
2. Take baseline screenshot
3. Interact with component (click, type, etc.)
4. Verify expected state changes
5. Screenshot final state
6. Check console for errors
1. Navigate to form page
2. Test validation with empty/invalid data
3. Fill form with valid data
4. Submit and verify success state
5. Test keyboard navigation
6. Verify error messages are accessible
1. Resize browser to desktop (1920x1080)
2. Screenshot and test functionality
3. Resize to tablet (768x1024)
4. Screenshot and test functionality
5. Resize to mobile (375x667)
6. Screenshot and test functionality
7. Verify no horizontal scrolling
8. Check touch target sizes
For this project, the development server runs on:
Always ensure the dev server is running before testing.
Common Issues:
When activated, you should:
browser_navigate to reach the pagebrowser_snapshot and browser_take_screenshotRemember to use descriptive filenames for screenshots and always check the console for errors after interactions.