What is this?
Midscene is a vision-driven GUI Agent combined with an E2E testing kit: it looks at screenshots to act on and verify UI across web, mobile, and desktop apps through one set of Agent APIs.
Is this a Playwright plugin, or a standalone agent?
It's its own Agent framework (aiAct, aiTap, aiInput, aiAssert, aiQuery) that you plug into Playwright, Puppeteer, or the JS SDK, or drive declaratively via YAML in Midscene Test — not a plain Playwright plugin.
How do I start writing tests with it?
Try it in the Playground or the Chrome extension first, then write tests with the Playwright/Puppeteer SDK or in YAML with Midscene Test, configuring a model and pointing it at an existing Playwright page.
Do I need to bring my own AI model?
Yes — you configure a multimodal model such as Qwen3.x, Doubao-Seed-2.1, GLM-4.6V, gemini-3.5-flash, or UI-TARS, and open-source options can be self-hosted instead of using a paid API.
Does it rely on the page DOM, like Selenium selectors do?
No — actions and assertions are primarily screenshot-based to avoid sending large DOM trees to the model; you can opt in to include DOM data for extraction tasks.
Can it test mobile and desktop apps too, not just web?
Yes — the same Agent APIs work across Web, Android, iOS, HarmonyOS, and desktop apps, with community SDKs extending it to iOS Mirror, Windows/macOS/Linux PC control (including a Docker image), Python, and Java.
What core APIs does Midscene expose?
aiAct drives autonomous multi-step flows, aiTap and aiInput perform single actions, aiAssert checks visual expectations, and aiQuery extracts structured data from the screen.
How good is it on real benchmarks?
Reported Pass@1 scores include 93.1% on AndroidWorld (Gemini-3.5-Flash), 78.6% on MobileWorld (Gemini-3.6-Flash), and 96.7% on AppControlBench (Doubao Seed 2.1 Turbo), with a full 60-task AppControlBench run costing about $0.59 in model fees.
Can AI coding agents drive the UI with Midscene too?
Yes, Midscene Skills let AI coding agents operate interfaces using the same visual Agent capabilities, not just human-written test scripts.
What is Midscene Test?
It's a Beta E2E framework that separates YAML-written UI flows and expectations from reusable TypeScript Nodes for API calls, data prep, and cleanup, with scaffolding, retries, and auto-generated docs of available Node capabilities.
What are similar projects?
e2e, mobile-mcp, testsprite-cli, UI-TARS-desktop, typesafe-computer-use, playwright, agent-desktop, collab-agent
Which topics is it in?
gui-agent, qa, computer-use-agent, web-automation, mobile-automation, browser-use, desktop-automation, e2e-testing, gui-automation, test-automation, computer-use, yaml