Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Mouse Class

 

Contains static methods for performing mouse actions.

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

System.Object
  Microsoft.VisualStudio.TestTools.UITesting.Mouse

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_protmethodMouse()

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the Mouse class.

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticHoverDuration

Gets or sets the mouse hover duration in milliseconds.

System_CAPS_pubpropertySystem_CAPS_staticInstance

Gets or sets the Mouse instance.

System_CAPS_pubpropertySystem_CAPS_staticLocation

Gets or sets the location of the Mouse.

System_CAPS_protpropertyLocationImplementation

Gets or sets the current location of the Mouse.

System_CAPS_pubpropertySystem_CAPS_staticMouseDragSpeed

Gets or sets the mouse move speed.

System_CAPS_pubpropertySystem_CAPS_staticMouseMoveSpeed

Gets or sets the mouse move speed.

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticClick()

Clicks the default mouse button.

System_CAPS_pubmethodSystem_CAPS_staticClick(ModifierKeys)

Clicks the default mouse button while holding the specified modifier keys.

System_CAPS_pubmethodSystem_CAPS_staticClick(MouseButtons)

Clicks the specified mouse button.

System_CAPS_pubmethodSystem_CAPS_staticClick(MouseButtons, ModifierKeys, Point)

Clicks the specified mouse button while holding the specified modifier keys at the specified location.

System_CAPS_pubmethodSystem_CAPS_staticClick(Point)

Clicks the default mouse button at the specified location.

System_CAPS_pubmethodSystem_CAPS_staticClick(UITestControl)

Clicks the default mouse button on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticClick(UITestControl, ModifierKeys)

Clicks the default mouse button on the specified control while holding the specified modifier keys.

System_CAPS_pubmethodSystem_CAPS_staticClick(UITestControl, MouseButtons)

Clicks the specified mouse button on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticClick(UITestControl, MouseButtons, ModifierKeys, Point)

Clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location relative to that control.

System_CAPS_pubmethodSystem_CAPS_staticClick(UITestControl, Point)

Clicks the default mouse button on the specified control at the specified location relative to that control.

System_CAPS_protmethodClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)

Clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.

System_CAPS_pubmethodDispose()

Releases all resources that are used by the current instance of the Mouse class.

System_CAPS_protmethodDispose(Boolean)

Cleans up any resources that are used.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick()

Double-clicks the mouse button.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(ModifierKeys)

Double-clicks the default mouse button that has modifiers.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(MouseButtons)

Double-clicks the specified mouse button.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(MouseButtons, ModifierKeys, Point)

Double-clicks the specified mouse button while holding the specified modifier keys at the specified screen location.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(Point)

Double-clicks the default mouse button at the specified location.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(UITestControl)

Double-clicks the default mouse button on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(UITestControl, ModifierKeys)

Double-clicks the default mouse button on the control with modifiers.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(UITestControl, MouseButtons)

Double-clicks the specified mouse button on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(UITestControl, MouseButtons, ModifierKeys, Point)

Double-clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.

System_CAPS_pubmethodSystem_CAPS_staticDoubleClick(UITestControl, Point)

Double-clicks the default mouse button on the specified control at the specified location that is relative to the control.

System_CAPS_protmethodDoubleClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)

Double-clicks the specified mouse button on the specified control while holding the specified modifier keys at the specified location that is relative to that control.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

The finalizer method. (Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticHover(Point)

Moves the mouse to the specified location.

System_CAPS_pubmethodSystem_CAPS_staticHover(Point, Int32)

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

System_CAPS_pubmethodSystem_CAPS_staticHover(UITestControl)

Pauses the mouse on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticHover(UITestControl, Point)

Moves the mouse to the specified location that is relative to the specified control.

System_CAPS_pubmethodSystem_CAPS_staticHover(UITestControl, Point, Int32)

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

System_CAPS_protmethodHoverImplementation(UITestControl, Point, Int32)

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

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticMove(Point)

Moves the mouse to the specified location.

System_CAPS_pubmethodSystem_CAPS_staticMove(UITestControl, Point)

Moves the mouse to the specified location that is relative to the specified control.

System_CAPS_protmethodMoveImplementation(UITestControl, Point)

Moves the mouse to the specified location that is relative to the specified control.

System_CAPS_pubmethodSystem_CAPS_staticMoveScrollWheel(Int32)

Scrolls the mouse wheel the specified number of times.

System_CAPS_pubmethodSystem_CAPS_staticMoveScrollWheel(Int32, ModifierKeys)

Scrolls the mouse wheel the specified number of times while pressing the specified modifier keys.

System_CAPS_pubmethodSystem_CAPS_staticMoveScrollWheel(UITestControl, Int32)

Scrolls the mouse wheel on the specified control the specified number of times.

System_CAPS_pubmethodSystem_CAPS_staticMoveScrollWheel(UITestControl, Int32, ModifierKeys)

Scrolls the mouse wheel on the specified control the specified number of times while pressing the specified modifier keys.

System_CAPS_protmethodMoveScrollWheelImplementation(UITestControl, Int32, ModifierKeys)

Scrolls the mouse wheel on the specified control the specified number of times while pressing the specified modifier keys.

System_CAPS_pubmethodSystem_CAPS_staticStartDragging()

Starts dragging the mouse.

System_CAPS_pubmethodSystem_CAPS_staticStartDragging(UITestControl)

Starts dragging the mouse from the specified control.

System_CAPS_pubmethodSystem_CAPS_staticStartDragging(UITestControl, MouseButtons)

Starts dragging the mouse while holding down the specified mouse buttons from the specified control.

System_CAPS_pubmethodSystem_CAPS_staticStartDragging(UITestControl, Point)

Starts dragging the mouse from the specified point that is relative to the specified control or from an absolute control, if control is null.

System_CAPS_pubmethodSystem_CAPS_staticStartDragging(UITestControl, Point, MouseButtons, ModifierKeys)

Starts dragging the mouse while holding down the specified mouse buttons and the specified keys from the specified point that is relative to the specified control or from an absolute control, if control is null.

System_CAPS_protmethodStartDraggingImplementation(UITestControl, MouseButtons, ModifierKeys, Point)

Starts dragging the mouse while holding down the specified mouse buttons and the specified keys from the specified point relative to the specified control or from an absolute control, if control is null.

System_CAPS_pubmethodSystem_CAPS_staticStopDragging(Int32, Int32)

Stops the drag operation.

System_CAPS_pubmethodSystem_CAPS_staticStopDragging(Point)

Stops the drag operation.

System_CAPS_pubmethodSystem_CAPS_staticStopDragging(UITestControl)

Stops the drag operation on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticStopDragging(UITestControl, Int32, Int32)

Stops the drag operation on the specified control.

System_CAPS_pubmethodSystem_CAPS_staticStopDragging(UITestControl, Point)

Stops the drag operation on the specified control.

System_CAPS_protmethodStopDraggingImplementation(UITestControl, Point, Boolean)

Stops the drag operation on the specified control.

System_CAPS_pubmethodToString()

(Inherited from Object.)

No content here will be updated; please do not add material here.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: