Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Hover Method (UITestControl, Point, Int32)

Mouse.Hover Method (UITestControl, Point, Int32)

Pauses the mouse at the specified location that is relative to the specified control for a specified duration.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

public static void Hover(
	UITestControl control,
	Point relativeCoordinate,
	int millisecondDuration
)

Parameters

control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControl
UITestControl to which the mouse is to be hovered.
relativeCoordinate
Type: System.Drawing.Point
Point relative to the control to which to move the mouse.
millisecondDuration
Type: System.Int32
Duration of the mouse hover.

Community Additions

ADD
Show:
© 2015 Microsoft