---
title: "Migrating from Appium to Maestro"
description: "Move Appium tests to Maestro YAML flows: map capabilities, locators and waits, convert a login test, and see which tests should stay on Appium."
canonical: "https://momentic.ai/blog/migrate-appium-to-maestro"
last-updated: "2026-10-31T10:13:16Z"
---

# Migrating from Appium to Maestro

URL: https://momentic.ai/blog/migrate-appium-to-maestro

[blog](/blog) [/ resources](/blog/category/resources)  / migrate-appium-to-maestro

Resources

How to move an Appium suite to Maestro flows, with a worked login example, a concept map and the cases where Appium is still the better fit.

Wei-Wei Wu

CEO, Momentic

## TL;DR

- Move a simple Appium suite to Maestro when its tests follow linear user journeys and you can express them as YAML flows. Keep Appium for tests that depend on complex native gestures or custom capability chains.
- Map Appium capabilities to Maestro app configuration, locators to `id` or text selectors, and explicit waits to Maestro’s built-in waiting. The worked login example shows how those changes affect a test.
- Check Maestro’s limits before migrating branching tests or cloud CI jobs. The decision table compares staying on Appium, moving to Maestro, and evaluating Momentic.
- Treat this as a procedure guide. Migrate one representative flow, run both suites during cutover, and move the remaining tests only after the new flow passes in CI.

## Why Appium migrations keep coming up

Appium failures can consume CI time without revealing a product regression. A test may fail while starting a session, before it reaches the screen it was meant to check. Driver-specific capabilities add configuration to maintain across devices and CI environments. When a screen loads later than a test expects, a poorly timed lookup can fail even though the app works.

Those failures do not make Appium the wrong choice for every suite. Its driver model remains useful when you need detailed control over native interactions. But if most tests open an app, tap through screens, and assert visible results, maintaining session configuration and explicit waits may take more work than those tests warrant.

Maestro gives you a simpler way to express those flows in YAML and waits for UI elements during execution. Momentic is another option to evaluate when test maintenance extends beyond mobile flows. The migration decision starts with the tests that fail in CI and the control each test actually needs.

## Mapping Appium concepts to Maestro

Appium configures a driver session, while Maestro runs commands against an app identified in a YAML flow. Translate each test’s intent before replacing its code. Some Appium settings have no direct Maestro equivalent.

| Appium concept | Maestro equivalent | What changes in practice |
| --- | --- | --- |
| Capabilities such as app package or bundle ID | appId in the flow header | Name the app the flow targets. Handle installation and device selection separately rather than copying the capabilities object into YAML. |
| Accessibility ID or resource ID locator | id selector | Use the element’s identifier, such as id: "loginButton", in a command. Check identifiers on both platforms if the flow must run on iOS and Android. |
| Visible-text locator | Text selector | Target stable UI copy directly, such as tapOn: "Log in". Copy changes can require a flow update. |
| Implicit or explicit waits | Built-in waiting, with extendedWaitUntil for longer delays | Remove routine sleeps and wait for the expected element or state when an operation takes longer. |

The mapping becomes lossy when an Appium test depends on driver-specific capabilities, XPath, or custom wait conditions. Maestro’s `appId` identifies the target app, but it does not replace every Appium session option. Treat those tests as individual migration decisions rather than translating them mechanically.

## Converting a login test from Appium to Maestro

Assume the login app is installed on an Android emulator. For this example, its package is `com.example.login`, its launch activity is `.MainActivity`, and its resource IDs are `email`, `password`, and `sign_in`. Replace those values with IDs from your app. Install the Maestro CLI first ([Maestro installation guide](https://docs.maestro.dev/getting-started/installing-maestro)).

The Appium test creates a UiAutomator2 session, locates the form fields by resource ID, and waits for the confirmation text.

`from appium import webdriver from appium.options.android import UiAutomator2Options from appium.webdriver.common.appiumby import AppiumBy from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait  capabilities = {  "platformName": "Android",  "appium:automationName": "UiAutomator2",  "appium:appPackage": "com.example.login",  "appium:appActivity": ".MainActivity",  "appium:noReset": False, }  driver = webdriver.Remote(  "http://127.0.0.1:4723",  options=UiAutomator2Options().load_capabilities(capabilities), )  try:  wait = WebDriverWait(driver, 10)  wait.until(  EC.visibility_of_element_located(  (AppiumBy.ID, "com.example.login:id/email")  )  ).send_keys("dev@example.com")   driver.find_element(  AppiumBy.ID, "com.example.login:id/password"  ).send_keys("example-password")  driver.find_element(  AppiumBy.ID, "com.example.login:id/sign_in"  ).click()   assert wait.until(  EC.visibility_of_element_located(  (  AppiumBy.ANDROID_UIAUTOMATOR,  'new UiSelector().text("Welcome")',  )  )  ) finally:  driver.quit()`

Save the equivalent Maestro flow as `login.yaml`. Maestro’s `appId` names the installed app, while `launchApp` replaces the session’s app launch. The resource IDs remain visible in the YAML, so you can check them against the Appium test line by line.

`appId: com.example.login --- - launchApp:  clearState: true - tapOn:  id: "com.example.login:id/email" - inputText: "dev@example.com" - tapOn:  id: "com.example.login:id/password" - inputText: "example-password" - tapOn:  id: "com.example.login:id/sign_in" - assertVisible: "Welcome"`

Maestro’s `assertVisible` checks the confirmation text without a `WebDriverWait` call. The two tests use different timing controls, so compare their behavior against your app rather than translating the ten-second timeout literally.

With the emulator running and the example APK available, install the app and run the flow with these commands.

`adb install -r apps/login-debug.apk maestro test login.yaml`

## What Maestro cannot do

Maestro does not give you a direct replacement for Appium tests with complex branching. Maestro supports conditional subflows and JavaScript, but a test that chooses among several paths based on runtime state may need substantial logic outside the readable YAML steps. Convert one of your most conditional tests before committing to a suite-wide migration.

Gesture coverage needs the same trial. Maestro provides swipe and scroll commands, but you should not assume they reproduce every Appium multi-touch or platform-specific gesture. Run your hardest gesture test on the target simulator or emulator, and keep its Appium job if the Maestro flow cannot express it.

Check Maestro Cloud's current plans before you design CI around parallel cloud runs.

## Stay on Appium, move to Maestro, or move to Momentic

Keep Appium when your tests depend on driver capabilities or native interactions that a Maestro flow cannot express. For a suite of straightforward user journeys, compare the test you would maintain in Maestro with the Appium code it replaces. If test maintenance spans web and mobile, evaluate Momentic separately rather than treating it as a drop-in Appium replacement.

| Choice | Test complexity and gestures | CI and maintenance fit |
| --- | --- | --- |
| Stay on Appium | Keep complex test logic, custom capability chains, or native gestures your suite already exercises. | Keep your existing device infrastructure and parallel CI jobs if you can maintain the drivers and test code. |
| Move to Maestro | Use YAML flows for login, checkout, and other mostly linear journeys. Check each required gesture against Maestro’s supported commands before migrating the test. | Run flows in CI, but verify the current cloud plan’s parallel-run limits before replacing concurrent Appium jobs. A small team still owns the flows and their selectors. |
| Move to Momentic | Consider intent-based tests when you need to verify behavior across web, iOS simulators, and Android emulators. Confirm that its supported interactions cover your native tests. | Momentic keeps YAML tests in your repo and supports agent-authored, agent-maintained tests. Check the <a href="/docs">Momentic documentation</a> against your CI and maintenance requirements. |

Migrate a representative test before moving the suite. A passing login flow proves little about a test that depends on a custom gesture, and a local run does not establish that your planned CI concurrency will work.

## Choosing the migration path that fits your suite

Use Maestro when your tests follow straightforward flows and its commands cover the gestures you need. Keep Appium for cases that depend on custom driver behavior or native interactions you cannot reproduce in Maestro. If maintaining tests as the interface changes takes more time than writing them, evaluate Momentic against a representative part of your suite before changing CI jobs. You can start with `npx @momentic/wizard@latest`.

## Frequently asked questions

Can Appium and Maestro run side by side during migration?    Yes. Keep your Appium suite running while you convert one flow at a time. Compare the results before removing the corresponding Appium test so a failed translation does not silently reduce coverage.    Does Maestro support React Native and Expo apps?    Maestro tests the running iOS or Android app rather than the framework used to build it. For an Expo app, make sure your CI job builds and installs the app you intend to test before running the flow.    What happens to existing Appium CI jobs during cutover?    Nothing changes automatically. Add a separate Maestro job, run both suites against the same build, and remove Appium jobs only after you have accounted for tests that Maestro cannot replace.    Can Maestro run every Appium test?    No. Review tests that depend on custom driver behavior, complex branching, or specialized gestures individually. Keep those tests on Appium until you have verified an equivalent Maestro flow against the app.

Still have additional questions?

## Keep reading.

[Resources   How to move tests out of testRigor, mabl or Katalon into your repo     Check testRigor, mabl and Katalon export options, preserve test coverage and migrate bounded flows into Playwright, Cypress or Momentic.     Wei-Wei Wu     7 min read](/blog/migrate-testrigor-mabl-katalon-tests-to-repo)[Resources   How to turn Jira and Linear tickets into end-to-end tests and bug reports automatically     Use Jira and Linear context to scope Mo testing, review findings, file Linear issues and create regression tests with documented integrations.     Wei-Wei Wu     7 min read](/blog/jira-tickets-to-end-to-end-tests)[Resources   How to test a Lovable, Replit or Bolt app before you ship it     Test a Lovable, Replit, Bolt or Claude Code app before release with code checks, browser regressions, authorization tests and CI gates.     Wei-Wei Wu     7 min read](/blog/test-lovable-replit-app-before-deploy)

## Try Mo on your app.

Mo is an AI QA engineer. It tests your running app and files each bug with repro steps. Free to start, no credit card.

[Try for free](https://app.momentic.ai/signup) [Contact sales](/sales)
