CheckOps
Midscene.js
Midscene.js is an MIT-licensed, vision-driven GUI agent and E2E test framework for web, Android, iOS, HarmonyOS and desktop, with natural-language YAML or JavaScript tests.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Midscene.js is an open-source GUI agent and end-to-end testing framework from the web-infra-dev organisation on GitHub. It is MIT-licensed. The official site’s tagline is to “see interfaces like a human” and write E2E tests in natural language.
It covers web (Playwright, Puppeteer and a Chrome bridge), Android, iOS, HarmonyOS and desktop. Tests can be written as YAML with steps like aiAct and aiWaitFor, or in JavaScript integrated with Playwright Test, Rstest or Vitest. It works with vision-capable models you configure.
Features
- Natural-language steps:
aiAct,aiWaitForand related calls describe what a user does and expects. - YAML test framework:
@midscene/testruns YAML cases with built-in nodes across platforms. - JavaScript SDK: Integrations for Playwright Test, Rstest and Vitest, plus standalone scripts.
- Many platforms: Web, Chrome bridge, Android, iOS, HarmonyOS and desktop.
- Model choice: Guides cover model selection and configuration, including an API key or a ChatGPT subscription.
- Reports: Visual reports help debug what the agent saw and did.
- Agent docs: The site publishes
llms.txtandllms-full.txtfor coding agents.
Pros
- Free and permissive: MIT licence, no vendor account required.
- Wide platform reach: Rare to find one framework spanning web, mobile, HarmonyOS and desktop.
- Popular: Over 15,000 GitHub stars at review time.
- Low model cost possible: The site shows one benchmark run of 60 tasks costing $0.59 in model fees; results vary by model.
- Fits existing runners: Plays well with Playwright Test and Vitest.
Cons
- Model setup required: You configure and pay for a vision model.
- Non-deterministic steps: AI interpretation can vary run to run.
- Docs span versions: v0.x and v1.x docs coexist; check which you are reading.
- Self-managed: No vendor SLA or hosted grid.
- Vision latency: Screenshot-based steps are slower than selectors.
Usage and Links (Example)
A YAML case adapted from the official site:
beforeEach:
- gotoUrl: https://your-shop.example
cases:
- name: "Find headphones under $100"
steps:
- aiAct: "Search for headphones and filter the results to prices under $100"
- aiWaitFor: "The filtered results are shown"
Configure a model first (see the model selection guide), then run the case with the Midscene test runner.
Resources:
Pricing
Midscene.js is free and open source under MIT. You pay the model provider you configure.
Recommended for?
- Teams testing the same flow across web and mobile who want one natural-language format.
- HarmonyOS app teams, a platform few tools support.
- Engineers who want an open-source vision agent inside Playwright or Vitest.
- Not a fit if you need a managed service with support contracts.
Conclusion
Midscene.js is one of the broadest open-source vision-driven testing frameworks, with YAML and JavaScript authoring and many platforms.
Pick a model carefully, keep critical assertions strict, and pin versions while the project evolves.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Midscene.js side by side.
SStagehandStagehand is Browserbase's MIT-licensed SDK for browser agents, mixing Playwright-style code with natural-language act, extract and observe calls and self-healing actions.Compare with Midscene.js
BBrowser UseBrowser Use is an open-source, MIT-licensed browser agent that can drive a real browser from natural-language tasks, with a hosted cloud billed by browser-hour rather than a subscription.Compare with Midscene.js
AAlumniumAlumnium is an MIT-licensed AI test harness: an MCP server for coding agents plus Java, Python and TypeScript libraries that add natural-language steps to Selenium, Playwright and Appium.Compare with Midscene.js
PPlaywrightPlaywright is a framework for Web Testing and Automation.Compare with Midscene.js
AAppiumCross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol.Compare with Midscene.js
MMaestroMaestro is a YAML UI test runner for Android, iOS, and web. The CLI is free and open source; Maestro Cloud is paid.Compare with Midscene.js