Skip to main content

PressTap

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

Press and tap: one finger holds an element while a second finger taps another, and the first lifts only after the second has. These call app_press_tap.

PressTap​

public void PressTap(string hold, string tap)

Holds one element with a finger while a second finger taps another; the first lifts only after the second. Both are resolved before anything is touched. Reports that the gesture was delivered; call Map again to see what it did. Android 15 and earlier only: on iOS XCTest adds a zero-length touch at the second finger's target when the gesture starts, and on Android 16 and later UiAutomator2's down times are rejected, so both refuse with UnsupportedException.

Examples​

Hold one thing and tap another​

device.PressTap("@e3", "@e7");

On a device​

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

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