Testing & QA · Browser automation SDK harness

Accessibility-Tree Browser Automation and E2E Test Generation

Microsoft's Playwright MCP server exposes structured browser accessibility snapshots to AI agents, enabling deterministic web navigation, form testing, and Playwright test script generation without vision models.

Evidence DocumentedAgent Playwright MCPHarness Browser automation SDK harnessAdded 21 Nov 2026

What This Workflow Does

Microsoft's Playwright MCP server exposes structured browser accessibility snapshots to AI agents, enabling deterministic web navigation, form testing, and Playwright test script generation without vision models.

Written for Engineers & QA reviewers. Goal: Testing & QA.

Agent, Harness & Requirements

The workflow runs on Playwright MCP inside a Browser automation SDK harness. A library drives the browser and exposes navigation, extraction, or accessibility-tree actions to the model.

  • Node.js
  • `@playwright/mcp`
  • MCP-compatible agent client (Claude Code, Cursor, VS Code)

How It Works

  1. Add `@playwright/mcp` to MCP client config
  2. Instruct agent to navigate target web app
  3. Agent interacts via accessibility tree refs
  4. Save recorded flow as `.spec.ts` test.

Command or prompt pattern

"Open https://example.com/login, test invalid password error states, and generate a Playwright TypeScript test file."

Evidence & Source

Documented The provider's own documentation describes this workflow, its requirements, and its setup steps. Zyvibe checked the linked source on 2026-11-21 and has not reproduced the workflow.

Playwright — Browser Automation & Testing

Official documentation · checked 21 Nov 2026

Open the source

Limitations

  • Canvas-heavy WebGL apps without semantic DOM/accessibility nodes require fallback coordinate actions.

This record describes what the source states. It is not a review, a benchmark, or a recommendation. If the tool has changed since the check date, report it.