@quanruzhuoxiu: Over the two years of developing Midscene.js, we made a belated but critical decision: UI automation will sooner or later shift from 'understanding the DOM' to 'looking at the screen'. So in the December 1.0 release, we directly cut the DOM compatibility path. In the early days, like everyone else, we followed a DOM + visual hybrid approach...
Summary
The Midscene.js team decided to completely shift from a DOM + visual hybrid approach to pure visual UI automation, believing that future UI automation must be based on screenshots rather than the DOM. This change reduced token consumption and simplified cross-platform adaptation.
Similar Articles
@quanruzhuoxiu: Often asked: What's the difference between Midscene and Browser-Use? Both are open-source, both use vision, both solve their respective problems. Here's an honest comparison, not to bash Browser-Use. Browser-Use is a web agent, positioned as "open the browser, get this done…"
A comparison of Midscene and Browser-Use, two open-source tools with different focuses: Browser-Use is a web agent for one-time tasks, while Midscene is a vision SDK designed for reliable multi-platform repeated execution.
@quanruzhuoxiu: My favorite design in Midscene.js is actually not the AI part, but the HTML replay report. Every time a script runs, it automatically generates a single-file HTML report containing: - Screenshots of each step - Full prompt input to the model - JSON output from the model (...
Midscene.js's HTML replay report design helps developers quickly locate the cause of AI automation failures through the triple combination of screenshots, prompt, and model output.
@DanKornas: UI tests should survive a refactor—and see the interface your users actually see. Midscene.js is a vision-driven UI tes…
Midscene.js is a vision-driven UI testing toolkit that uses natural-language steps and screenshot-based actions instead of selectors, supporting web, mobile, desktop, and custom interfaces. It is open-source under the MIT license.
@quanruzhuoxiu: When using Midscene's Computer Agent, desktop automation runs headless in Linux CI. Everyone assumes desktop UI automation must use a real machine or VM, so Mac/Windows desktop E2E can only run locally and cannot enter CI. Result...
Midscene's Computer Agent enables desktop UI automation to run headless in Linux CI, automated via xvfb-run, without needing a real machine or VM, and supports Electron, Qt, and GTK applications.
@ewind_dev: Excited to share that with the help of Fable, I've finally built the ultimate cross-platform UI framework I've envisioned for years – PocketJS! Porting QuickJS to the Sony PSP with only 32MB of memory, combined with standard SolidJS and Vue Vapor, …
With Fable, the author ported QuickJS to the Sony PSP, combined SolidJS, Vue Vapor, and a compile-time Tailwind style engine to achieve smooth 60fps animations with only 8MB of memory, releasing a minimalist cross-platform UI framework called PocketJS.