Robot Framework mobile keywords on top of Maestro, with an AppiumLibrary-style API
pip install robotframework-maestrolibrary Copy PIP instructions
Robot Framework keywords for mobile apps, driven by Maestro. If you know AppiumLibrary, you already know the keyword names, the arguments and the strategy=value locators. There's no Appium server and no capabilities to manage. Maestro waits for the UI on every action.
A version tag (v0.2.0, matching __version__) builds the package in CI and uploads it to the project's registry, and to PyPI when the PYPI_TOKEN CI variable is set. MIT: see LICENSE.
*** Settings *** Library MaestroLibrary timeout=10s *** Test Cases *** Search Settings Open Application com.android.settings Click Text Search settings exact_match=True Input Text id=com.google.android.settings.intelligence:id/open_search_view_edit_text wifi Wait Until Page Contains Wi-Fi [Teardown] Close All Applications Locators text=, accessibility_id=, id= (literal, whole value), regex=, id_regex= (Maestro regular expressions), point=50%,50%. A bare value means text. Flutter apps get ids from Semantics(identifier: ...). xpath, class, android, ios, predicate, chain, css, name and identifier fail with a clear message.
Same names and arguments: Close/Activate/Terminate Application, Close All Applications, Go Back, Go To Url, Get Source, Log Source, Execute Adb Shell, Click Element, Click Text, Input Text, Input Password, Input Text Into Current Element, Clear Text, Hide Keyboard, Page Should (Not) Contain Text/Element, Element Should Be Visible/Enabled/Disabled, Text Should Be Visible, Element Text Should Be, Element Should (Not) Contain Text, Get Text, Get Element Attribute, Scroll Element Into View, Expect Element, Expect Text, the five Wait Until keywords, Swipe, Swipe By Percent, Scroll Down/Up, Tap, Long Press, Press Keycode, Capture Page Screenshot, Register Keyword To Run On Failure, Set Location, Landscape, Portrait.
Not ported: webview contexts, xpath, multiple app aliases, touch id, WebElement keywords, Drag And Drop, Flick, sleep-between-wait-loop settings.
The library talks to maestro mcp. What the other maestro subcommands do, and where it lives here:
Flow commands without a keyword, still reachable with Run Flow: the AI assertions (need a Maestro Cloud key), inputRandom*, clipboard commands (the copied text stays inside one flow), repeat/retry (use Robot's FOR and Wait Until Keyword Succeeds), runScript/evalScript, toggleAirplaneMode, assertDarkMode/assertLightMode, clearKeychain (iOS), doubleTapOn.
Each maestro mcp process reinstalls Maestro's driver app on the device once, when it first connects (Maestro hard-codes it). The library keeps one process for the whole run.
python -m unittest discover -s utest # no device needed robot --pythonpath src -d results atest # needs a running Android emulator python -m robot.libdoc --pythonpath src MaestroLibrary results/MaestroLibrary.html Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 8, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. ai94iq License expression MIT View SPDX License List
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




