Skip to content

wait --for visible means on screen: an off-screen row is not visible (CHALLENGES 311) - #203

Merged
lana-20 merged 1 commit into
mainfrom
wait-visible
Oct 13, 2026
Merged

lana-20 merged 1 commit into
mainfrom
wait-visible

Conversation

@lana-20

@lana-20 lana-20 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

`wait --for visible` kept any match with a size. iOS keeps a list's rows off screen in the tree with real bounds, so a row thousands of pixels below the screen was "visible". Visible and hidden now ask whether the element's center is on the screen and inside the part of its list in view.

Measured on MobiumApp's Table Demo on the iPhone 17 Pro simulator: Item 25, at y 5307, is refused as visible ("off screen — app_scroll_to brings it into view"), passes as hidden, and is visible after `scroll-to`.

  • `TestAWaitForVisibleIsOnScreen`
  • dialogs, locators and feed on the Android 15 emulator, and those plus mobium-app on the simulator: all passed
  • `make ci` passes

@lana-20
lana-20 merged commit bc64f22 into main Oct 13, 2026
3 checks passed
@lana-20
lana-20 deleted the wait-visible branch October 13, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant