Skip to main content

Text

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Read text from the screen. These call app_text.

Text​

public string Text()
public string Text(string target)

Everything readable on screen.

The text of one element, by ref or locator.

Examples​

Read everything on screen​

string screen = device.Text();

The same call from the command line, mobium text, printed on an Android 15 emulator:

Profile picture, double tap to open Google Account
Settings
Search settings
Network & internet
Mobile, Wi‑Fi, hotspot
Connected devices
Bluetooth, pairing
Apps
Assistant, recent apps, default apps
Notifications
Notification history, conversations
Battery
100%
Storage
51% used - 7.85 GB free
Sound & vibration
Volume, haptics, Do Not Disturb

mobium text on an Android 15 emulator

mobium text on an Android 15 emulator

Read one element's text​

string title = device.Text("testid=title");

More examples​

Wait for text within an element​

device.WaitFor("@e4", Until.Text("Sent"));