Scroll-ToVisible

Scrolls until the element is visible

Powershell

Scrolls until the element is visible. Currently only implemented for Full Device Automation.

Syntax

Scroll-ToVisible [[-sessionId] ] [[-elementId] ] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.
elementId The identifier of the element to become visible.

Examples

Scroll-ToVisible -elementId $element

C#

Declaration

void Quamotion.WebDriver.Client.AppDriver.ScrollToVisible(this AppDriver appDriver, IWebElement element)

Arguments:

type name description
OpenQA.Selenium.IWebElement element The element to which to scroll.

Examples

driver.ScrollToVisible(okButtonElement);

Comments

This function only supports device automation