You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A tap right after lock lock can report success on a locked device #327
Straight after lock lock, a tap can answer tapped, exit 0, and reach nothing.
Seen on mainfe42c5b and af200b6. Android 15 emulator. MobiumApp v1.0.0, home screen. An iPhone 17 Pro simulator (iOS 26.5) never reported a false success in 6 tries.
Repro
$ mobium lock lock
locked (was unlocked)
$ mobium current
dev.mobium.mobiumapp
$ mobium tap "label=Login Demo"
tapped label=Login Demo at (540, 814)
$ mobium lock unlock
unlocked (was locked)
$ mobium find testid=username
No element matches testid=username
Tap outcomes over 8 trials, on each build:
Outcome
Exit
fe42c5b
af200b6
tapped …
0
2
2
the screen could not be read because the device is locked
3
2
3
could not read the UI hierarchy … while the screen was changing
1
4
3
testid=username was absent after unlock in 8/8, so the two reported taps did not open the Login Demo.
Two defects:
A false success. A test or agent carries on as if the tap landed.
Exit 1 names a changing screen, and never the lock. lockedRead gives the right answer in the other trials.
iOS, 6 of 6, on fe42c5b: no element matches label=Login Demo on the current screen — the screen may have changed, run app_map again, exit 4. It is not a false success, though it doesn't mention the lock either, and current still named the app in 5 of the 6.
Possible fix
lock lock answers before the keyguard is up, so the next read still sees the app. Either wait in lockOn until the tree no longer shows the app, or check ScreenLocked before a touch on Android, and in the read-failure path that produced exit 1. I have not built or tested either.
iOS: wait label=Login Demo --timeout 2s times out, exit 6, with it is not on screen. It doesn't mention the lock, though tap, scroll-to and others by locator do.
iOS: tap 540 814 reports tapped (540, 814), exit 0. That touch does reach the lock screen.
Activity
lana-20 commentedon Nov 5, 2026
Verified on
mainebab788, Android 15 emulator and iPhone 17 Pro simulator (iOS 26.5).lock lockThe Login Demo was not open after unlock in any of the 42 tries. Unlocked, the same tap works on both platforms.
Three locked-device cases remain:
input keyevent KEYCODE_SLEEPfrom outside Mobium: a tap by element reports success, 8 of 8. Name the lock, however an action meets it (CHALLENGES 389) #332 names this limit.wait label=Login Demo --timeout 2stimes out, exit 6, withit is not on screen. It doesn't mention the lock, thoughtap,scroll-toand others by locator do.tap 540 814reportstapped (540, 814), exit 0. That touch does reach the lock screen.