Preparation
Install Node.js
Install Node.js 18 or higher.
Prepare API Key
Prepare an API Key for a visual language (VL) model.
You can find supported models and configurations for Midscene.js in the Model strategy documentation.
Prepare WebDriver Server
Before getting started, you need to set up the iOS development environment:
- macOS (required for iOS development)
- Xcode and Xcode command line tools
- iOS Simulator or real device
Environment Configuration
Before using Midscene iOS, you need to prepare the WebDriverAgent service.
WebDriverAgent version must be >= 7.0.0
Please refer to the official documentation for setup:
- Simulator Configuration: Run Prebuilt WDA
- Real Device Configuration: Real Device Configuration
Verify Environment Configuration
After completing the configuration, you can verify whether the service is working properly by accessing WebDriverAgent's status endpoint:
Access URL: http://localhost:8100/status
Correct Response Example:
If you can successfully access this endpoint and receive a similar JSON response as shown above, it indicates that WebDriverAgent is properly configured and running.

