create .env file
# Replace with your own API key
MIDSCENE_MODEL_BASE_URL="https://.../compatible-mode/v1"
MIDSCENE_MODEL_API_KEY="sk-abcdefghijklmnopqrstuvwxyz"
MIDSCENE_MODEL_NAME="qwen3-vl-plus"
MIDSCENE_MODEL_FAMILY="qwen3-vl"Refer to this document if your want to use other models like Qwen: https://midscenejs.com/model-strategy.html
Ensure that Node.js is installed. Install the @midscene/cli globally
npm i -g @midscene/cliRun all scripts
For windows, you need to replace
./with.\, likemidscene .\midscene-scripts\.
midscene ./midscene-scripts/Extract status info from github status page
midscene ./midscene-scripts/extract-github-status.yamlPerform a testing case on sauce demo
midscene ./midscene-scripts/sauce-demo.yamlPerform a search on ebay.com
midscene ./midscene-scripts/search-headphone-on-ebay.yamlServe the server_root folder as a static server and test the index.html file
midscene ./midscene-scripts/local-static-server.ymlRun a script with headed mode (i.e. you can see the browser window when running)
midscene --headed ./midscene-scripts/sauce-demo.yamlKeep the browser window open after the script finishes
midscene --keep-window ./midscene-scripts/sauce-demo.yaml