Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.85 KB

File metadata and controls

23 lines (20 loc) · 1.85 KB

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

Moves the mouse to the specified offset of the top-left corner of the specified element.

public static OpenQA.Selenium.IWebElement MoveToElement(this OpenQA.Selenium.IWebElement toElement, int offsetX, int offsetY);

Parameters

toElement OpenQA.Selenium.IWebElement
The OpenQA.Selenium.IWebElement to which to move the mouse.

offsetX System.Int32
The horizontal offset to which to move the mouse.

offsetY System.Int32
The vertical offset to which to move the mouse.

Returns

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