Skip to main content

check

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

Put a checkbox or switch into a state, rather than toggling whatever it is in. These call app_check.

check​

check(target: string, checked?: boolean): Promise<Data>

Examples​

Tick a checkbox, whatever state it is in​

await device.check('testid=termsCheck')

The same call from the command line, mobium check testid=termsCheck, printed on an Android 15 emulator:

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

mobium check testid=termsCheck on an Android 15 emulator

Turn a switch off​

await device.check('@e4', false)

On a device​

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

mobium uncheck testid=termsCheck on an Android 15 emulator