Share via


Mouse.Hover Method (Point, Int32)

Pause the mouse at the specified point for a specified duration.

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

Syntax

'Declaration
Public Shared Sub Hover ( _
    screenCoordinate As Point, _
    millisecondsDuration As Integer _
)
public static void Hover(
    Point screenCoordinate,
    int millisecondsDuration
)
public:
static void Hover(
    Point screenCoordinate, 
    int millisecondsDuration
)
static member Hover : 
        screenCoordinate:Point * 
        millisecondsDuration:int -> unit
public static function Hover(
    screenCoordinate : Point, 
    millisecondsDuration : int
)

Parameters

  • screenCoordinate
    Type: Point

    Point on the screen to hover the mouse.

  • millisecondsDuration
    Type: Int32

    Duration of the mouse hover.

.NET Framework Security

See Also

Reference

Mouse Class

Hover Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace

Point