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

Mobilewright simplifies mobile device automation for iOS and Android. It replaces complex, verbose tools like Appium or native frameworks with a clean, auto-waiting API that reduces the need for manual waits and complex locators (like XPath), making it easier to write reliable tests and build AI agents that can control mobile devices.

How it works

Built on top of mobilecli, Mobilewright provides a unified interface for interacting with real devices, simulators, and emulators. It exposes the device's accessibility tree, allowing users to find elements via semantic roles, labels, and text rather than coordinates. For hybrid apps, it bridges into the DOM to provide a Playwright-compatible Page object for web content. It also includes a doctor CLI tool to verify environment dependencies like Xcode and Android SDK.

Who it’s for

  • QA Engineers and Developers who want a Playwright-like developer experience for mobile testing.
  • AI Agent Developers who need a deterministic, token-efficient way for agents to perceive and interact with mobile screens without relying on vision models.
  • Cross-platform Teams needing a single API to target both iOS and Android.

Highlights

  • Playwright-inspired API: Uses familiar patterns like getByRole, getByText, and expect assertions.
  • AI-Ready: Provides direct access to the accessibility tree for deterministic agent control.
  • Auto-waiting: Actions automatically wait for elements to be visible, enabled, and stable.
  • Hybrid App Support: Seamlessly switches between native views and WebViews with a standard Playwright API.
  • Cross-Platform: Unified interface for iOS and Android devices and emulators.
  • Zero Config: Automatically discovers booted simulators.

Related

  • Project
  • Project
  • Project
  • Project
  • Project