Install
$ agentstack add skill-pfangueiro-claude-code-agents-browser-testing ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Browser Testing with Playwright MCP
Comprehensive patterns for end-to-end browser testing, visual regression, and responsive design verification using the Playwright MCP server.
Available Playwright MCP Tools
Navigation & State
playwright_navigate— Open a URL (setbrowserType,width,height,headless)playwright_go_back/playwright_go_forward— History navigationplaywright_resize— Change viewport (manual or 143+ device presets:iPhone 13,iPad Pro,Galaxy S24, etc.)
Interaction
playwright_click— Click an element (CSS selector)playwright_fill— Fill an input fieldplaywright_select— Select dropdown valueplaywright_hover— Hover over elementplaywright_drag— Drag element to targetplaywright_press_key— Press keyboard keyplaywright_upload_file— Upload file to input
Inspection
playwright_screenshot— Capture page or element screenshot (withfullPage,selector,savePng)playwright_get_visible_text— Get all visible text on pageplaywright_get_visible_html— Get HTML (options:cleanHtml,minify,removeScripts,selector)playwright_console_logs— Retrieve browser console logs (filter by type: error, warning, etc.)playwright_evaluate— Execute arbitrary JavaScript in browser
HTTP API Testing
playwright_get/playwright_post/playwright_put/playwright_patch/playwright_delete— Direct HTTP operations with auth headers
Code Generation
start_codegen_session— Begin recording interactions as Playwright test codeend_codegen_session— Generate the test file from recorded actionsget_codegen_session— Check session statusclear_codegen_session— Discard without generating
Response Validation
playwright_expect_response— Start waiting for an HTTP response (by URL pattern)playwright_assert_response— Validate the response body
Patterns
E2E Test: User Journey
1. playwright_navigate → target URL
2. playwright_fill → username/password fields
3. playwright_click → submit button
4. playwright_expect_response → /api/auth (start waiting)
5. playwright_assert_response → verify auth succeeded
6. playwright_screenshot → capture authenticated state
7. playwright_get_visible_text → verify welcome message
Visual Regression: Screenshot Comparison
1. playwright_navigate → target page
2. playwright_screenshot → name: "baseline-homepage", savePng: true
3. [Make code changes]
4. playwright_navigate → same page (fresh load)
5. playwright_screenshot → name: "current-homepage", savePng: true
6. Compare screenshots visually or via diff tool
Responsive Design Testing
1. playwright_navigate → target page
2. playwright_resize → device: "iPhone 13" (375x812)
3. playwright_screenshot → name: "mobile"
4. playwright_resize → device: "iPad Pro 11" (834x1194)
5. playwright_screenshot → name: "tablet"
6. playwright_resize → width: 1920, height: 1080
7. playwright_screenshot → name: "desktop"
Form Validation Testing
1. playwright_navigate → form page
2. playwright_fill → invalid email
3. playwright_click → submit
4. playwright_get_visible_text → check for error messages
5. playwright_console_logs → type: "error" (check for JS errors)
6. playwright_fill → valid data
7. playwright_click → submit
8. playwright_assert_response → verify API success
Codegen: Record Test from Manual Actions
1. start_codegen_session → outputPath: "/tests/e2e/"
2. playwright_navigate → target URL
3. playwright_click → interact with elements
4. playwright_fill → fill forms
5. end_codegen_session → generates test file at outputPath
Cross-Browser Testing
1. playwright_navigate → url, browserType: "chromium"
2. playwright_screenshot → name: "chrome-result"
3. playwright_close
4. playwright_navigate → url, browserType: "firefox"
5. playwright_screenshot → name: "firefox-result"
6. playwright_close
7. playwright_navigate → url, browserType: "webkit"
8. playwright_screenshot → name: "safari-result"
Best Practices
- Always
playwright_closewhen done — releases browser resources - Use
selectoroption on screenshots to capture specific components - Set
headless: truefor CI/automated runs,falsefor debugging - Use
playwright_console_logswithtype: "error"after interactions to catch JS errors - Use
playwright_expect_responseBEFORE the action that triggers the request - Use device presets for accurate mobile/tablet testing (includes user-agent + touch emulation)
- For iframes, use
playwright_iframe_clickandplaywright_iframe_fill
When to Use
- After implementing UI changes — verify visual correctness
- During investigate — reproduce UI bugs with exact browser state
- For accessibility — check WCAG compliance with visual + text inspection
- For API testing — use HTTP tools for direct endpoint verification
- For regression — screenshot before/after code changes
Related
test-automationagent — generates test suites (uses Playwright for E2E)frontend-specialistagent — implements UI components (uses Playwright for verification)investigateskill — Phase 2 (REPRODUCE) uses Playwright for UI bug reproduction
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: pfangueiro
- Source: pfangueiro/claude-code-agents
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.