mobium long-press
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Press and hold an element or a point
Usage
mobium long-press <@ref | locator | x y> [flags]
Flags
| Flag | Type | Default | What it does |
|---|---|---|---|
--duration | duration | 800ms | How long to hold |
And the global flags.
Examples
Press and hold for two seconds
mobium long-press @e4 --duration 2s
More, from mobium long-press --help
mobium long-press @e4
mobium long-press 540 1200
mobium long-press @e4 --duration 2s
On a device
| Before | After |
|---|---|
![]() | ![]() |
mobium long-press testid=pressTarget on an Android 15 emulator
The tool
long-press calls app_long_press; its arguments and what every client calls it are there.

