ScrollDown-To

Scrolls down until an element with a matching xpath is visible

Powershell

Scrolls down until an element with a matching xpath is visible

Syntax

ScrollDown-To [[-sessionId] ] [[-elementId] ] [[-xpath] ] [[-scrollTimeout] ] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.
elementId The identifier of the scroll view.
xpath (marked locator) The value for the marked locator
scrollTimeout

Examples

ScrollDown-To -elementId $scrollView -xpath "*[@marked='John']"

C#

Declaration

void Quamotion.WebDriver.Client.AppDriver.ScrollDownTo(this AppDriver appDriver, IWebElement element, string xpath)

Arguments:

type name description
OpenQA.Selenium.IWebElement element The scroll container containing the element to which to scroll to
OpenQA.Selenium.IWebElement xpath The xpath defining the element to which to scroll to

Examples

driver.ScrollDownTo(scrollContainerElement, obButtonXpath);

Comments

This function only supports app automation at this moment.