Mouse Class
In this article
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
Top
Properties
Top
Methods
Click()
Click(Point)
Click(MouseButtons)
Click(ModifierKeys)
Click(ModifierKeys)
Click(MouseButtons)
Click(Point)
Click(UITestControl)
Click(UITestControl, ModifierKeys)
Click(UITestControl, MouseButtons)
Click(UITestControl, Point)
Click(UITestControl, Point)
Click(UITestControl, MouseButtons)
Click(UITestControl, ModifierKeys)
Click(MouseButtons, ModifierKeys, Point)
Click(MouseButtons, ModifierKeys, Point)
Click(UITestControl, MouseButtons, ModifierKeys, Point)
Click(UITestControl, MouseButtons, ModifierKeys, Point)
ClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
ClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Dispose()
Dispose(Boolean)
DoubleClick()
DoubleClick(Point)
DoubleClick(MouseButtons)
DoubleClick(ModifierKeys)
DoubleClick(ModifierKeys)
DoubleClick(MouseButtons)
DoubleClick(Point)
DoubleClick(UITestControl)
DoubleClick(UITestControl, ModifierKeys)
DoubleClick(UITestControl, MouseButtons)
DoubleClick(UITestControl, Point)
DoubleClick(UITestControl, Point)
DoubleClick(UITestControl, MouseButtons)
DoubleClick(UITestControl, ModifierKeys)
DoubleClick(MouseButtons, ModifierKeys, Point)
DoubleClick(MouseButtons, ModifierKeys, Point)
DoubleClick(UITestControl, MouseButtons, ModifierKeys, Point)
DoubleClick(UITestControl, MouseButtons, ModifierKeys, Point)
DoubleClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
DoubleClickImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
Equals
Determines whether the specified object is equal to the current object. (Inherited from Object.)
Finalize
(Overrides Object.Finalize.)
GetHashCode
Serves as the default hash function. (Inherited from Object.)
GetType
Gets the Type of the current instance. (Inherited from Object.)
Hover(Point)
Hover(Point)
Hover(UITestControl)
Hover(Point, Int32)
Hover(Point, Int32)
Hover(UITestControl, Point)
Hover(UITestControl, Point)
Hover(UITestControl, Point, Int32)
Hover(UITestControl, Point, Int32)
HoverImplementation(UITestControl, Point, Int32)
HoverImplementation(UITestControl, Point, Int32)
MemberwiseClone
Creates a shallow copy of the current Object . (Inherited from Object.)
Move(Point)
Move(Point)
Move(UITestControl, Point)
Move(UITestControl, Point)
MoveImplementation(UITestControl, Point)
MoveImplementation(UITestControl, Point)
MoveScrollWheel(Int32)
MoveScrollWheel(Int32, ModifierKeys)
MoveScrollWheel(Int32, ModifierKeys)
MoveScrollWheel(UITestControl, Int32)
MoveScrollWheel(UITestControl, Int32, ModifierKeys)
MoveScrollWheel(UITestControl, Int32, ModifierKeys)
MoveScrollWheelImplementation(UITestControl, Int32, ModifierKeys)
MoveScrollWheelImplementation(UITestControl, Int32, ModifierKeys)
StartDragging()
StartDragging(UITestControl)
StartDragging(UITestControl, MouseButtons)
StartDragging(UITestControl, Point)
StartDragging(UITestControl, Point)
StartDragging(UITestControl, MouseButtons)
StartDragging(UITestControl, Point, MouseButtons, ModifierKeys)
StartDragging(UITestControl, Point, MouseButtons, ModifierKeys)
StartDraggingImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
StartDraggingImplementation(UITestControl, MouseButtons, ModifierKeys, Point)
StopDragging(Point)
StopDragging(Point)
StopDragging(UITestControl)
StopDragging(Int32, Int32)
StopDragging(UITestControl, Point)
StopDragging(UITestControl, Point)
StopDragging(UITestControl, Int32, Int32)
StopDraggingImplementation(UITestControl, Point, Boolean)
StopDraggingImplementation(UITestControl, Point, Boolean)
ToString
Returns a string that represents the current object. (Inherited from Object.)
Top
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