scrollUntilVisible
Basic Usage
- scrollUntilVisible:
element:
text: "some text" # Any selector to identify the element
speed: 80 # Optional number between 0-100. A higher number means faster scrolling.
timeout: 10000 # Optional value in milliseconds after which the command fails if it's not found the element. Defaults to 20000ms.
direction: DOWN # DOWN|UP|LEFT|RIGHT (optional, default: DOWN)
visibilityPercentage: 100 # 0-100 (optional, default 100) Percentage of element visible in viewport
centreElement: # Will attempt to centre the element in the viewportOptions
Speed
- scrollUntilVisible:
element:
text: "submit"
speed: 80Timeout
Direction
Visibility Percentage
Centre Element
Examples
Related Commands
Last updated