mobile-next/mobilewright
Mobilewright is a dev framework for Mobile App Testing and Automation. It allows testing iOS/Android app on real devices, emulators and simulators with a single API.
What it solves
Mobile app testing is fragmented. Appium is verbose and Selenium-style, Detox only works with React Native, and XCTest/Espresso are single-platform with manual waits. Mobilewright offers one unified, Playwright-style API for both iOS and Android with built-in auto-waiting, zero-config device discovery, and first-class support for AI agents controlling real phones.
How it works
Mobilewright sits on top of mobilecli, which talks to iOS simulators, Android emulators, and real devices. You write tests using a screen object with locator factories (getByRole, getByLabel, getByText, etc.) that find elements through the device's accessibility tree. Every action (tap, fill, swipe) auto-waits for the element to be visible, enabled, and stable. Assertions poll repeatedly until satisfied or timeout. For hybrid apps, getByWebView() bridges into the embedded DOM and returns a Playwright-compatible Page. It also exposes the raw accessibility tree for AI agents.
Who it's for
Developers and QA engineers writing automated tests for iOS and Android apps — especially those already familiar with Playwright. Also AI agents and coding tools (Claude, Cursor, mobile-mcp) that need to control a real phone via readable, semantic actions instead of screenshots.
Highlights
- Playwright-style API:
screen.getByRole('button').tap()mirrorspage.getByRole('button').click() - Zero config: auto-discovers booted simulators and emulators
- Cross-platform: one API for iOS and Android
- Auto-waiting on every action
- Chainable, filterable locators
- Retry assertions with
.notand soft assertions - WebView support with a Playwright-compatible Page
- Built for AI agents: exposes the accessibility tree, no vision model needed
- Remote device support and cloud providers (BrowserStack, Sauce Labs, etc.)
Related
- Project
- Project
- Project
- Project
- Project