Skip to main content

mobium press-tap

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

Hold one thing with a finger and tap another with a second

One finger presses and stays down; a second finger taps; then the first lifts. Both targets are resolved before anything is touched.

The second finger lands after --lead-ms, 300 by default: under Android's 500ms long-press timeout, so the held element does not open its own menu first.

What comes back is that the gesture was delivered. What it meant is the app's own state — run map again to see it.

Android 15 and earlier only. On iOS, XCTest adds a zero-length touch at the second finger's target when the gesture starts, so WebDriverAgent refuses rather than touch the target twice. On Android 16 and later, UiAutomator2 gives the second finger its own down time, which Android rejects along with every injected touch after it.

Usage​

mobium press-tap <hold> <tap> | press-tap <x1> <y1> <x2> <y2> [flags]

Flags​

FlagTypeDefaultWhat it does
--lead-msint300how long the first finger rests before the second taps, in milliseconds

And the global flags.

Examples​

Hold one thing and tap another​

mobium press-tap @e3 @e7

More, from mobium press-tap --help​

mobium press-tap @e3 @e7
mobium press-tap 300 1200 700 1200
mobium press-tap @e3 @e7 --lead-ms 800 # let the hold register first

On a device​

mobium press-tap &#39;label=Hold zone&#39; &#39;label=Act zone&#39; on an Android 15 emulator

mobium press-tap 'label=Hold zone' 'label=Act zone' on an Android 15 emulator

The tool​

press-tap calls app_press_tap; its arguments and what every client calls it are there.