Name every
tap.
Robot Framework keywords for mobile apps, driven by Maestro. The AppiumLibrary names, arguments and locators you know, with no Appium server and no capabilities.
settings_search.yaml
- appId: com.android.settings
- ---
- - launchApp
- - assertVisible: "Search Settings"
- - inputText: "wifi"
- - hideKeyboard
settings_search.robot
- *** Settings ***
- Library MaestroLibrary
- *** Test Cases ***
- Settings Search
- Open Application com.android.settings
- Wait Until Page Contains Element text\=Search Settings
- Input Text Into Current Element wifi
- Hide Keyboard
$ python -m MaestroLibrary.flow2robot settings_search.yaml > settings_search.robot
Keywords you already know. Tests you write by tapping.
How the keywords in MaestroLibrary 1.0.2 line up with AppiumLibrary 3.2.1, listed with Robot Framework's libdoc.
these keywordsthe whole librarykeyword count
Same name as in AppiumLibrary
74%53
72 in MaestroLibrary
Same name and argument names
64%46
72 in MaestroLibrary
Added by Maestro
26%19
72 in MaestroLibrary
AppiumLibrary keywords that carry over
48%53
110 in AppiumLibrary
What isn't ported, and what behaves differently, is in the README.
| Feature | What you get |
|---|---|
| AppiumLibrary names, no Appium | Click Text, Input Text, the five Wait Until keywords, Swipe, Capture Page Screenshot and more. Maestro waits for the UI on every action, so there are no sleeps. |
| Tap a phone, get a Robot test | A window shows the device live. Every action runs on it while the matching Robot line is recorded, with a locator and how many elements it matches. |
| YAML to Robot, and back | Convert a Maestro flow to a Robot test with flow2robot, or set record_flows=True and every command a test sends is written to a flow file. |
| More than Appium had | Run Flow, app permissions, Set Dark Mode, Set Airplane Mode, Add Media, Screenshot Should Match, and Travel for moving the location. |
| Logs and mirroring | On Android, every test's logcat is saved to its own file and linked in the log. Optional scrcpy mirroring shows the device while a suite runs. |
| Six locators that work | text=, accessibility_id=, id=, regex=, id_regex= and point=. Anything else fails with a clear message. |
Pick an element. Get its locator. Tap it. It writes the line.
Studio, on a live device
| In Studio | Does |
|---|---|
Inspect | shows each locator with how many elements it matches |
Act | runs your taps on the device and records them as Robot steps |
No unique locator | records the tap with a note to ask for a test id |
Install Studio
pip install "robotframework-maestrolibrary[studio]" python -m MaestroLibrary.studio --app com.android.vending
Windows, Linux and macOS builds: releases (unsigned).

id=android:id/title matches 10 elements; text=Display & touch is unique.
What you need, and where it runs.
You need
- Python 3.12 or newer
- Maestro CLI and Java 17+
- An Android emulator or device
- adb on PATH
- scrcpy, optional
Works with
- Android emulators and devices
- iOS simulators on a Mac
- Flutter, Compose, React Native
- Windows, Linux and macOS