Actions MoveToElement Method (IWebElement, Int32, Int32)WebDriver
Moves the mouse to the specified offset of the top-left corner of the specified element.

Namespace: OpenQA.Selenium.Interactions
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public Actions MoveToElement(
	IWebElement toElement,
	int offsetX,
	int offsetY
)

Parameters

toElement
Type: OpenQA.Selenium IWebElement
The element to which to move the mouse.
offsetX
Type: OnlineSystem Int32
The horizontal offset to which to move the mouse.
offsetY
Type: OnlineSystem Int32
The vertical offset to which to move the mouse.

Return Value

A self-reference to this Actions.
See Also