Scroll Down Until Visible

Purpose: Scrolls down the screen until a specific element or text becomes visible. Useful for revealing off-screen content during automated navigation.

Scrolls down a maximum of 30 times, until an element with the provided id is visible. If the no element with the matching id is visible within 30 scrolls GPTD will fail the test.

Syntax:

scrollDownUntilVisible.id:“elementID”
scrollDownUntilVisible.text:“text”

Example:

To scroll until the element with ID continue-button is visible:

scrollDownUntilVisible.id:“continue-button”

To scroll until the text “Terms and Conditions” appears:

scrollDownUntilVisible.text:“Terms and Conditions”

Note:

This command only applies to Android devices. It will have no effect on iOS.

Last updated