Mobilewright
Reliable mobile automation framework for testing, scripting, and AI agents, powered by Playwright with a single deterministic API for iOS and Android.
At a Glance
About Mobilewright
Mobilewright is an open-source mobile automation framework built by Mobile Next HQ, inspired by Playwright's API design. It provides a single deterministic API for iOS and Android, supporting auto-waiting, chainable locators, and retry assertions. The framework works with UIKit, SwiftUI, React Native, and Expo, and is cloud-ready for use with real devices via Mobile Use.
- Playwright-style SDK — Install via
npm install mobilewrightand use familiar chainable locators likescreen.getByLabel(),screen.getByRole(), andexpect().toBeVisible()for reliable mobile test authoring. - iOS & Android support — One unified API targets both platforms, eliminating the need for separate automation stacks.
- Framework compatibility — Supports UIKit, SwiftUI, React Native, and Expo out of the box.
- Auto-waiting & retry assertions — Built-in waiting and assertion retries reduce flaky tests without manual sleep calls.
- Mobilewright CLI — Run
npx mobilewright initto scaffold a project,npx mobilewright testto execute tests, andnpx mobilewright doctorto verify your environment — zero config required. - Auto-discovery of simulators — The CLI automatically detects available iOS simulators and Android emulators.
- Cloud-ready — Integrates with Mobile Use for running tests on real devices in the cloud.
- AI agent support — Designed to work as an automation layer for AI agents, enabling programmatic mobile interaction.
- Apache 2.0 licensed — Fully open-source under the Apache license, with source code available on GitHub.
Community Discussions
Be the first to start a conversation about Mobilewright
Share your experience with Mobilewright, ask questions, or help others learn from your insights.
Pricing
OPEN SOURCE
Open Source
Fully open-source under Apache 2.0 license, free to use for any purpose.
- Playwright-style API for iOS and Android
- Auto-waiting and retry assertions
- Chainable locators
- Zero-config CLI
- Simulator auto-discovery
Capabilities
Key Features
- Playwright-style API for mobile automation
- iOS and Android support via one unified API
- Auto-waiting and retry assertions
- Chainable locators (getByLabel, getByRole, getByText)
- Supports UIKit, SwiftUI, React Native, and Expo
- Zero-config CLI with auto-discovery of simulators
- Scaffold, run, and verify environment from CLI
- Cloud-ready with real device support via Mobile Use
- AI agent automation support
- Apache 2.0 open-source license
Integrations
Mobile Use
iOS Simulator
Android Emulator
React Native
Expo
UIKit
SwiftUI
npm
API Available
View Docs