UITestActionExecutor.Hover Method (UITechnologyElement, Point, Int32)
Hovers the mouse on the specified control for a given duration.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public MustOverride Sub Hover ( _
control As UITechnologyElement, _
relativeCoordinate As Point, _
millisecondsDuration As Integer _
)
public abstract void Hover(
UITechnologyElement control,
Point relativeCoordinate,
int millisecondsDuration
)
public:
virtual void Hover(
UITechnologyElement^ control,
Point relativeCoordinate,
int millisecondsDuration
) abstract
abstract Hover :
control:UITechnologyElement *
relativeCoordinate:Point *
millisecondsDuration:int -> unit
public abstract function Hover(
control : UITechnologyElement,
relativeCoordinate : Point,
millisecondsDuration : int
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementControl on which the mouse is to be hovered.
relativeCoordinate
Type: PointCo-ordinates relative to the control. If control is null, then absolute screen co-ordinates.
millisecondsDuration
Type: Int32Duration of mouse hover
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.