Skip to main content

mobium swipe

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

Swipe the screen, or an element

Usage​

mobium swipe <up|down|left|right | @ref|locator direction | x1 y1 x2 y2> [flags]

Flags​

FlagTypeDefaultWhat it does
--durationduration300msHow long the drag takes

And the global flags.

Examples​

Swipe up, to scroll the page down​

mobium swipe up

Printed on an Android 15 emulator:

swiped up: (540,1584) to (540,679)
BeforeAfter
Before: mobium swipe up on an Android 15 emulatorAfter: mobium swipe up on an Android 15 emulator

mobium swipe up on an Android 15 emulator

More, from mobium swipe --help​

mobium swipe up # scroll down the page
mobium swipe left # next pager screen
mobium swipe @e5 left # reveal a list row's swipe actions
mobium swipe 540 1800 540 600 # exact drag
mobium swipe up --duration 800ms # slow drag rather than a fling

The tool​

swipe calls app_swipe; its arguments and what every client calls it are there.