Skip to main content

pressDrag

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

Press and drag: one finger holds an element while a second finger drags from one place to another, and the first lifts only after the second has. These call app_press_drag.

pressDrag​

pressDrag(hold: string, from: string, to: string, options?: { leadMs?: number }): Promise<Data>

Examples​

Hold one thing and drag another​

await device.pressDrag('@e3', '@e5', '@e9')

On a device​

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

mobium press-drag 'label=Hold zone' 'label=Act zone' 'label=Drag end' on an Android 15 emulator