Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 1.9 KB

File metadata and controls

22 lines (20 loc) · 1.9 KB

WebElementExtensions.JavaScriptScrollLeft(OpenQA.Selenium.IWebElement, int) Method

The JavaScriptScrollLeft(OpenQA.Selenium.IWebElement, int) property sets the number of pixels
an element's content is scrolled horizontally.

public static OpenQA.Selenium.IWebElement JavaScriptScrollLeft(this OpenQA.Selenium.IWebElement element, int scrollLeft);

Parameters

element OpenQA.Selenium.IWebElement
This OpenQA.Selenium.IWebElement instance.

scrollLeft System.Int32
The number of pixels an element's content is scrolled horizontally.

Returns

OpenQA.Selenium.IWebElement
A self-reference to this OpenQA.Selenium.IWebElement.

Remarks

Works only on Web/Mobile Web platforms.