ScrollUp-To

Scrolls up until an element with a matching xpath is visible

Powershell

Scrolls up until an element with a matching xpath is visible

Syntax

ScrollUp-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

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

C#

Declaration

void Quamotion.WebDriver.Client.AppDriver.ScrollUpTo(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.ScrollUpTo(scrollContainerElement, obButtonXpath);

Comments

This function only supports app automation at this moment.