scrollUntilVisible
Repeatedly scrolls the container matching string containerTag in direction until targetTag becomes visible.
Primary method for revealing off-screen elements inside long lists or lazy layouts.
Example Usage
// Scroll down list until "Settings Item" becomes visible
scrollUntilVisible("settings_list", "Notification Settings")Parameters
The testTag or visible text of the scrollable container.
The testTag or visible text of the element to reveal.
The scroll direction (defaults to ScrollDirection.Down).
Maximum number of scroll attempts before failing (default 30).
Stabilization pause in milliseconds between scrolls (default 300ms).
Throws
If targetTag is not revealed within maxScrolls scroll attempts.
Repeatedly scrolls the container matching containerSelector in direction until targetSelector becomes visible.
Advanced variant using explicit selectors for container and target element lookup.
Example Usage
scrollUntilVisible(
containerSelector = tag("feed_list"),
targetSelector = text("Load More").first(),
direction = ScrollDirection.Down
)Parameters
Explicit selector targeting the scrollable container.
Explicit selector targeting the element to reveal.
The scroll direction (defaults to ScrollDirection.Down).
Maximum number of scroll attempts before failing (default 30).
Stabilization pause in milliseconds between scrolls (default 300ms).
Throws
If targetSelector is not revealed within maxScrolls scroll attempts.