Scroll Up Until Visible
Purpose: Scrolls up the screen until a specific element or text becomes visible. Useful for navigating to content located above the current viewport.
Scrolls up 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:
scrollUpUntilVisible.id:“elementID”
scrollUpUntilVisible.text:“text”
Example:
To scroll up until the element with ID header-logo is visible:
scrollUpUntilVisible.id:“header-logo”
To scroll up until the text “Account Settings” appears:
scrollUpUntilVisible.text:“Account Settings”
Note:
This command only applies to Android devices. It will have no effect on iOS.
Last updated