longPress
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Press and hold an element or a point — the gesture that opens context menus and starts drag-and-drop. These call app_long_press.
longPress
longPress(target: string | Point, options?: { durationMs?: number }): Promise<void>
Examples
Press and hold for two seconds
await device.longPress('@e4', { durationMs: 2000 })
On a device
| Before | After |
|---|---|
![]() | ![]() |
mobium long-press testid=pressTarget on an Android 15 emulator

