Share via


Mouse Class

Contains static methods for performing mouse actions.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.Mouse

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assemblies:   Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)
  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)

Syntax

'Declaration
<CLSCompliantAttribute(True)> _
Public Class Mouse _
    Implements IDisposable
[CLSCompliantAttribute(true)]
public class Mouse : IDisposable
[CLSCompliantAttribute(true)]
public ref class Mouse : IDisposable
[<CLSCompliantAttribute(true)>]
type Mouse =  
    class 
        interface IDisposable 
    end
public class Mouse implements IDisposable

The Mouse type exposes the following members.

Constructors

  Name Description
Protected method Mouse

Top

Properties

  Name Description
Public propertyStatic member HoverDuration
Public propertyStatic member Instance
Public propertyStatic member Location
Protected property LocationImplementation
Public propertyStatic member MouseDragSpeed
Public propertyStatic member MouseMoveSpeed

Top

Methods

  Name Description
Public methodStatic member Click()
Public methodStatic member Click(Point)
Public methodStatic member Click(MouseButtons)
Public methodStatic member Click(ModifierKeys)
Public methodStatic member Click(ModifierKeys)
Public methodStatic member Click(MouseButtons)
Public methodStatic member Click(Point)
Public methodStatic member Click(UITestControl)
Public methodStatic member Click(UITestControl, ModifierKeys)
Public methodStatic member Click(UITestControl, MouseButtons)
Public methodStatic member Click(UITestControl, Point)
Public methodStatic member Click(UITestControl, Point)
Public methodStatic member Click(UITestControl, MouseButtons)
Public methodStatic member Click(UITestControl, ModifierKeys)
Public methodStatic member Click(MouseButtons, ModifierKeys, Point)
Public methodStatic member Click(MouseButtons, ModifierKeys, Point)
Public methodStatic member Click(UITestControl, MouseButtons, ModifierKeys, Point)
Public methodStatic member Click(UITestControl, MouseButtons, ModifierKeys, Point)
Protected method ClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Protected method ClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Public method Dispose()
Protected method Dispose(Boolean)
Public methodStatic member DoubleClick()
Public methodStatic member DoubleClick(Point)
Public methodStatic member DoubleClick(MouseButtons)
Public methodStatic member DoubleClick(ModifierKeys)
Public methodStatic member DoubleClick(ModifierKeys)
Public methodStatic member DoubleClick(MouseButtons)
Public methodStatic member DoubleClick(Point)
Public methodStatic member DoubleClick(UITestControl)
Public methodStatic member DoubleClick(UITestControl, ModifierKeys)
Public methodStatic member DoubleClick(UITestControl, MouseButtons)
Public methodStatic member DoubleClick(UITestControl, Point)
Public methodStatic member DoubleClick(UITestControl, Point)
Public methodStatic member DoubleClick(UITestControl, MouseButtons)
Public methodStatic member DoubleClick(UITestControl, ModifierKeys)
Public methodStatic member DoubleClick(MouseButtons, ModifierKeys, Point)
Public methodStatic member DoubleClick(MouseButtons, ModifierKeys, Point)
Public methodStatic member DoubleClick(UITestControl, MouseButtons, ModifierKeys, Point)
Public methodStatic member DoubleClick(UITestControl, MouseButtons, ModifierKeys, Point)
Protected method DoubleClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Protected method DoubleClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize (Overrides Object.Finalize.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member Hover(Point)
Public methodStatic member Hover(Point)
Public methodStatic member Hover(UITestControl)
Public methodStatic member Hover(Point, Int32)
Public methodStatic member Hover(Point, Int32)
Public methodStatic member Hover(UITestControl, Point)
Public methodStatic member Hover(UITestControl, Point)
Public methodStatic member Hover(UITestControl, Point, Int32)
Public methodStatic member Hover(UITestControl, Point, Int32)
Protected method HoverImplementation(UITestControl, Point, Int32)
Protected method HoverImplementation(UITestControl, Point, Int32)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic member Move(Point)
Public methodStatic member Move(Point)
Public methodStatic member Move(UITestControl, Point)
Public methodStatic member Move(UITestControl, Point)
Protected method MoveImplementation(UITestControl, Point)
Protected method MoveImplementation(UITestControl, Point)
Public methodStatic member MoveScrollWheel(Int32)
Public methodStatic member MoveScrollWheel(Int32, ModifierKeys)
Public methodStatic member MoveScrollWheel(Int32, ModifierKeys)
Public methodStatic member MoveScrollWheel(UITestControl, Int32)
Public methodStatic member MoveScrollWheel(UITestControl, Int32, ModifierKeys)
Public methodStatic member MoveScrollWheel(UITestControl, Int32, ModifierKeys)
Protected method MoveScrollWheelImplementation(UITestControl, Int32, ModifierKeys)
Protected method MoveScrollWheelImplementation(UITestControl, Int32, ModifierKeys)
Public methodStatic member StartDragging()
Public methodStatic member StartDragging(UITestControl)
Public methodStatic member StartDragging(UITestControl, MouseButtons)
Public methodStatic member StartDragging(UITestControl, Point)
Public methodStatic member StartDragging(UITestControl, Point)
Public methodStatic member StartDragging(UITestControl, MouseButtons)
Public methodStatic member StartDragging(UITestControl, Point, MouseButtons, ModifierKeys)
Public methodStatic member StartDragging(UITestControl, Point, MouseButtons, ModifierKeys)
Protected method StartDraggingImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Protected method StartDraggingImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Public methodStatic member StopDragging(Point)
Public methodStatic member StopDragging(Point)
Public methodStatic member StopDragging(UITestControl)
Public methodStatic member StopDragging(Int32, Int32)
Public methodStatic member StopDragging(UITestControl, Point)
Public methodStatic member StopDragging(UITestControl, Point)
Public methodStatic member StopDragging(UITestControl, Int32, Int32)
Protected method StopDraggingImplementation(UITestControl, Point, Boolean)
Protected method StopDraggingImplementation(UITestControl, Point, Boolean)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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

Thread Safety

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

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace