AB
AiBoss
project

Midscene.js - An AI-driven UI automation testing framework

Midscene.js is an AI-based automation SDK that simplifies UI automation testing by using Large Language Models (LLMs). Users describe interaction steps or expected data formats in natural language, and Midscene.js executes...

What is Midscene.js?

Midscene.js is an AI-based automation SDK that simplifies UI automation testing by using Large Language Models (LLMs). Users describe interaction steps or expected data formats in natural language, and Midscene.js executes the corresponding actions. Midscene.js supports action execution, data querying, and page assertions, reducing script maintenance costs and providing visual reports. As an open-source project, Midscene.js can run in users' own environments, ensuring data security.

Main functions of Midscene.js

  • Natural Language InteractionUsers perform a series of actions based on the described steps, such as entering text or clicking a button.
  • Custom data queryThe JSON format required by the user description will be used by Midscene.js to extract the corresponding data based on the page content.
  • Intuitive inferenceUsers assert the page state to ensure the UI meets expectations.
  • Chrome extensionIt allows users to perform actions, queries, and assertions using natural language on any webpage without writing code.
  • Code project integrationIt integrates with tools such as YAML scripts, Puppeteer, and Playwright to enable automated testing.
  • Visualized ReportAfter each run, a visual report is provided, including animation playback and step details, as well as a test environment for users to adjust prompts without having to rerun the script.

The technical principles of Midscene.js

  • Natural Language Processing (NLP)It receives natural language input from users and parses the instructions based on NLP technology.
  • Interface UnderstandingThe model analyzes webpage content to understand user-described interface elements and actions.
  • Execute actionBased on the results of the understanding, the model will perform corresponding browser automation operations, such as simulating user input and clicks.
  • Data extractionThe model extracts data in a specific format from web pages based on the user's query request.
  • Assertion VerificationThe model checks whether the page state meets the user's assertion conditions.

Project address for Midscene.js

Application scenarios of Midscene.js

  • Automated testing scenariosAutomated execution of test cases ensures that all functions of a website or application work as expected.
  • Data scraping scenariosExtract structured data, such as product information, from web pages for use in market analysis or inventory management.
  • Performance monitoring scenariosSimulate user behavior, monitor website performance, and promptly identify and resolve performance bottlenecks.
  • Interface consistency check scenariosVerify that the website displays consistently across different devices and browsers to ensure a good user experience.
  • Price monitoring scenarioRegularly check product prices and automatically notify users or the system when price changes are detected.