Skip to main content

mobium set

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

Tick a checkbox or turn a switch on

Puts the control into the checked state, rather than toggling it.

Idempotent: if it is already checked this does nothing and says so, which is what makes it safe to call without reading the state first. That is the difference from tap, which flips whatever is there — reaching a known state with tap means read, compare, tap, read again.

Refuses anything with no checked state rather than tapping it and calling it checked, and confirms the tap by reading the state back.

Usage​

mobium set <@ref | locator> [flags]

Examples​

Tick a checkbox, whatever state it is in​

mobium set testid=termsCheck

Printed on an Android 15 emulator:

testid=termsCheck is now checked
BeforeAfter
Before: mobium set testid=termsCheck on an Android 15 emulatorAfter: mobium set testid=termsCheck on an Android 15 emulator

mobium set testid=termsCheck on an Android 15 emulator

More, from mobium set --help​

mobium set @e3
mobium set testid=termsCheck

On a device​

BeforeAfter
Before: mobium unset testid=termsCheck on an Android 15 emulatorAfter: mobium unset testid=termsCheck on an Android 15 emulator

mobium unset testid=termsCheck on an Android 15 emulator

The tool​

set calls app_set; its arguments and what every client calls it are there.