Loading your favourites…
GitHub Summary · Repository
Midscene.js
web-infra-dev/midscene
AI editorial summary
Midscene.js tests web, mobile and desktop interfaces using instructions you write in everyday language. An AI model looks at screenshots to find controls and check visible results. Test teams can write cases in YAML, a plain-text format, or add the visual agent to existing tests, then inspect screenshots and step results in a report. documented capabilities · Reference source.
The configured model and platform integration shape what the test can see and do. GitHub Project guide.
What it does
A test engineer could ask Midscene.js to search a sample shop for headphones, apply a price filter and check whether the visible results meet it. The guide shows this workflow in YAML and in JavaScript with Playwright. The report helps the engineer check what the agent clicked and what it saw before trusting the verdict. documented example with an editorial verification step · Reference source.
Developer relevance
The agent uses screenshots to find and act on visual controls, including icons and custom-drawn elements. Midscene Test also lets developers keep precise operations such as preparing records and cleaning up after a test in reusable TypeScript functions. Step reports expose screenshots, actions and verdicts, with results, caches and logs saved under midscene_run/. documented test mechanisms · Reference source.
Primary use cases
End-to-end interface tests, visual assertions and scripted UI automation.
Documented · Source. Checked 2026-11-22 UTC.
Next investigation
Try one price-filter test against a staging shop with fixed test data. Include a case where a result visibly exceeds the limit. Repeat the cases and compare the agent's verdicts with a known list of prices and the report screenshots. editorial inference · Reference source.
Developer references.Risks and limits
A plausible verdict can still be wrong. Model-based clicks and assertions need checks against known outcomes. A wrong click can change records, so use test data and accounts for an initial trial. Source.
Screenshots may expose sensitive data. A hosted model can receive screen content, and reports store screenshots and step details. Check what the service retains and who can open the reports. Model usage costs depend on the configuration and workload. Source.
How to set it up
Start with the Setup Guide.
The GitHub Project guide shows the browser route using a configured model and a Playwright page inside an existing JavaScript test, or Midscene Test with a Web runtime for YAML cases. Android uses ADB, iOS uses WebDriverAgent and HarmonyOS NEXT uses HDC.
The root workspace declares Node.js ^20.19.0 || ^22.12.0 || >=24.0.0 and pnpm >=9.3.0, with pnpm 9.3.0 pinned. These are checkout requirements. Check your model access and usage charges before running a test. documented setup and root workspace requirements · Reference source · Package manifest.
GitHub activity: 15,686 stars · Forks unavailable · Watchers unavailable · Contributors unavailable. Known figures checked 2026-11-22 UTC. GitHub counts measure visible activity. User numbers and reliability require separate evidence. Contributors can include bots and anonymous authors. GitHub metadata · Contributors · Release page.
Editorial source snapshot: 15,686 stars, 1,229 forks and 70 watchers. Contributor count unavailable in the snapshot. Last push 2026-11-20 UTC. Latest published release observed v1.18.2 (2026-11-20 UTC). Repository licence MIT. Snapshot dated 2026-11-22 UTC.
Technical profile and use cases
Draft classifications from public sources checked . Suggested uses are editorial interpretation; uncertain values are marked Not established.
| Classification | Details | Evidence |
|---|---|---|
| Target platform | Web, mobile, desktop and custom interfaces. | Documented · Source for Target platform |
| Operating system | Desktop targets include macOS, Windows and Linux. Mobile targets include Android, iOS and HarmonyOS NEXT. | Documented · Source for Operating system |
| Deployment | Runs through a test framework or SDK with a configured platform runtime and model. | Documented · Source for Deployment |
| Intended users | Test engineers and developers automating user interface workflows. | Editorial classification · Source for Intended users |
| Primary use cases | End-to-end interface tests, visual assertions and scripted UI automation. | Documented · Source for Primary use cases |
| Project type | Visual GUI automation SDK and end-to-end test framework. | Editorial classification · Source for Project type |
| User interface | YAML cases, JavaScript APIs, interactive playgrounds and HTML reports. | Documented · Source for User interface |
| Integration interface | Agent APIs, reusable TypeScript Nodes and a custom screenshot-and-action interface. | Documented · Source for Integration interface |
| UI technology | HTML reports and a Chrome extension are described. Their frontend frameworks were not established. | Not established · Source for UI technology |
| AI model execution | Uses a configured vision-capable model, with hosted and self-hosted choices documented. | Documented · Source for AI model execution |
| Level of autonomy | The visual agent chooses UI actions for a supplied step. The test case sets the workflow and assertions. | Documented · Source for Level of autonomy |
| Access and pricing | Model charges depend on provider and workload. A general per-test price was not established. | Not established · Source for Access and pricing |
| Licence | MIT for the captured repository, subject to its notice requirement. | Documented · Source for Licence |
| Data handling | Screenshots are model inputs. Reports, results, caches and logs are saved under midscene_run/. | Documented · Source for Data handling |
| Integrations | Playwright, Puppeteer, desktop Chrome, Rstest, Vitest, ADB, WebDriverAgent, HDC and remote RDP. | Documented · Source for Integrations |
| Project maturity | Published v1.18.2 observed. The captured root manifest also declares 1.18.2. | Review status · Source for Project maturity |
| Evidence level | Pinned README, licence and root workspace manifest, plus dated GitHub metadata and release notes. | Review status · Source for Evidence level |
Relevance to Autonomous Desktop Agents (ADA)
A desktop agent test could use Midscene.js to locate a control from a screenshot, perform one approved action and check the visible result. This is a proposed use of documented platform APIs. A person would still need to validate the result and set access limits for the session.
editorial inference · Developer references.
YouTube reference
The supplied material covers written examples and links to showcases.
No YouTube watch-page metadata was supplied or verified.