Share via


Mouse.Click Method

Include Protected Members
Include Inherited Members

Clicks the mouse button.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member Click() Clicks the default mouse button.
Public methodStatic member Click(Point) Clicks the default mouse button at the specified location.
Public methodStatic member Click(MouseButtons) Clicks the specified mouse button.
Public methodStatic member Click(ModifierKeys) Clicks the default mouse button while holding the specified modifier keys.
Public methodStatic member Click(UITestControl) Clicks the default mouse button on the specified control.
Public methodStatic member Click(UITestControl, Point) Clicks the default mouse button on the specified control at the specified location relative to that control.
Public methodStatic member Click(UITestControl, MouseButtons) Clicks the specified mouse button on the specified control.
Public methodStatic member Click(UITestControl, ModifierKeys) Clicks the default mouse button on the specified control while holding the specified modifier keys.
Public methodStatic member Click(MouseButtons, ModifierKeys, Point) Clicks the specified mouse button while holding the specified modifier keys at the specified location.
Public methodStatic member Click(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.

Top

See Also

Reference

Mouse Class

Microsoft.VisualStudio.TestTools.UITesting Namespace