askill
browser-testing

browser-testingSafety 88Repository

Automated browser testing and debugging using Browser DevTools MCP. Use when testing web pages, debugging frontend issues, verifying UI behavior, or automating browser interactions.

4 stars
1.2k downloads
Updated 3/10/2026

Package Files

Loading files...
SKILL.md

Browser Testing Skill

Automated browser testing and debugging skill using Browser DevTools MCP.

When to Use

This skill activates when:

  • User asks to test a web page or application
  • User wants to debug frontend issues
  • User needs to verify UI behavior
  • User asks about page performance or accessibility
  • User wants to automate browser interactions

Capabilities

Ref-Based Workflow (Recommended)

  1. ARIA snapshot first (a11y_take-aria-snapshot) — Returns refs (e1, e2, …) and a refs map. Options: interactiveOnly, cursorInteractive (for div/span buttons), selector (scope).
  2. Use refs in interactions — Click, fill, hover, etc. accept CSS selector or ref (e.g. e1, @e1). Refs valid until next snapshot or navigation.
  3. Annotated screenshotcontent_take-screenshot with annotate: true overlays labels [1],[2],… mapping to e1,e2,…

Navigation & Interaction

  • Navigate to URLs (navigation_go-to)
  • Click, fill, hover — selector or ref (e.g. e1, #submit)
  • Press keys (interaction_press-key), scroll (interaction_scroll), drag (interaction_drag)

Content Capture

  • Screenshots (content_take-screenshot) — optional annotate, annotateContent, cursorInteractive
  • HTML/text content, PDF

Debugging & Observability

  • Get console messages (o11y_get-console-messages)
  • Monitor HTTP requests (o11y_get-http-requests)
  • Get Web Vitals (o11y_get-web-vitals)
  • OpenTelemetry tracing (o11y_get-trace-id, o11y_set-trace-id)

Accessibility

  • ARIA snapshot (a11y_take-aria-snapshot) — returns refs; options: interactiveOnly, cursorInteractive, selector
  • AX tree (a11y_take-ax-tree-snapshot) — bounding box, occlusion, styles

Mocking & Stubbing

  • Intercept HTTP requests (stub_intercept-http-request)
  • Mock HTTP responses (stub_mock-http-response)
  • List stubs (stub_list)
  • Clear stubs (stub_clear)

React DevTools

  • Get React component for element (react_get-component-for-element)
  • Get element for React component (react_get-element-for-component)

Code Execution

  • Run JavaScript in browser (run_js-in-browser)
  • Run JavaScript in sandbox (run_js-in-sandbox)
  • Run JavaScript in Node process (run_js-in-node, when PLATFORM=node)

Best Practices

  1. ARIA snapshot first — Do not use screenshot to understand page structure. Call a11y_take-aria-snapshot first, then use refs (e1, e2) in interactions or take annotated screenshots.
  2. Wait for network idle after navigation before interacting
  3. Use refs for interactions — Refs from ARIA snapshot are stable; prefer refs over CSS selectors when available
  4. Annotated screenshots — Use annotate: true when you need visual labels that match refs for vision-driven actions
  5. Re-snapshot after navigation — Refs are invalid after navigation or major DOM changes

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 3/1/2026

High-quality technical reference skill for Browser DevTools MCP testing. Well-organized with clear 'When to Use' section, structured capabilities, and best practices. Scores well on clarity, actionability, and safety. Minor gaps in completeness (no setup info, limited examples) but overall comprehensive. Located in dedicated skills folder with good metadata."

88
82
72
70
78

Metadata

Licenseunknown
Version-
Updated3/10/2026
Publisherserkan-ozal

Tags

apigithub-actionsobservabilitytesting