Skip to content

Compare Playwright and headless browser skills on dynamic SPAs without burning vision tokens

Compare accessibility-tree snapshots vs screenshot-grounding browser skills on React SPAs, shadow DOMs, and multi-tab workflows.

Copy the prompt and paste it into the AI assistant you already use.

How to pick a browser skill that stays fast and reliable

  1. 01

    Compare accessibility-snapshot pruning quality

    Raw HTML dumps hit 100k tokens on modern sites; top browser skills send compact interactive ref trees (@e12) instead.

  2. 02

    Test hybrid fallback to vision on canvas/charts

    DOM trees handle 90% of clicks cheaply, while selective screenshot fallback rescues canvas widgets and custom datepickers.

  3. 03

    Check deterministic wait-for-network-idle logic

    Avoid skills that fire arbitrary sleep(3000) calls or click stale element refs mid-hydration on Next.js SPAs.

  4. 04

    Verify persistent session and cookie profile support

    For internal enterprise tools, ensure the skill attaches safely to pre-authenticated browser storage states.

How it works in practice

Browser benchmark suite

Execute 75 WebArena-style admin & SaaS workflows across Playwright-MCP, agent-browser CLI skill, and pure-screenshot-agent.

Measured completion & cost

agent-browser ref-tree CLI skill: 83% task pass, 14k tokens/task ($0.07), p50 19s. Playwright-MCP: 81% pass, 38k tokens/task ($0.18), p50 24s. pure-screenshot-agent: 76% pass, 92k tokens ($0.49), p50 47s.

Compact interactive element refs match or beat screenshot loops at less than one-fifth the token cost and half the latency.

Questions and answers

Why can CLI-based browser skills use fewer tokens than Playwright MCP?

CLI browser skills return tightly filtered element reference lists on demand without carrying verbose MCP schema definitions or full accessibility subtrees on every step.

When do vision-based browser skills outperform DOM tree skills?

Vision grounding wins on HTML5 canvas apps, Figma/map interfaces, PDF viewers, and poorly labeled legacy portals lacking semantic DOM nodes.

Do your benchmarks solve CAPTCHAs or bypass bot gates?

No. All benchmarks run against self-hosted deterministic web sandboxes and authorized test apps without CAPTCHA circumvention.