This document explains how to use the Maestro integration features in the Android Mobile Control Panel (MCP).
Maestro is a powerful UI testing framework for mobile apps that allows you to:
- Create and run UI tests with a simple YAML syntax
- Record UI interactions and replay them
- Run tests in parallel across multiple devices
- Inspect UI elements with Maestro Studio
To use the Maestro integration features, you need to install Maestro:
# Install Maestro
curl -Ls "https://get.maestro.mobile.dev" | bashAfter installation, make sure to add Maestro to your PATH.
The Android MCP with Maestro Integration provides the following UI automation features:
You can create Maestro flows by adding UI actions step by step:
- Launch an app
- Tap on elements (by text, ID, or coordinates)
- Input text
- Swipe
- Wait
- Press back button
- Assert elements are visible
Once you've created a flow, you can run it on your device.
You can record your interactions with the device and save them as a Maestro flow:
- Record a new flow
- Run a previously recorded flow
Launch Maestro Studio to inspect UI elements on your device and get their properties.
- Connect your Android device
- Launch the MCP with Maestro Integration
- Create a new Maestro flow
- Add actions to the flow (e.g., launch app, tap on elements, input text)
- Run the flow on your device
- Alternatively, record a flow and replay it later
Maestro uses a simple YAML syntax for defining UI tests. Here are some examples:
appId: com.example.app
---
- launchApp- tapOn:
text: "Login"- inputText:
text: "username"
id: "username_field"- swipe:
start: "500,1500"
end: "500,500"- wait: 2- assertVisible:
text: "Welcome"If you encounter issues with Maestro:
- Make sure Maestro is installed and in your PATH
- Check that your device is properly connected and authorized
- Try running
maestro --versionto verify the installation - For more help, visit the Maestro documentation