Mouse.Click Method (UITestControl, ModifierKeys)
Clicks the default mouse button on the specified control while holding the specified modifier keys.
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Shared Sub Click ( _
control As UITestControl, _
modifierKeys As ModifierKeys _
)
public static void Click(
UITestControl control,
ModifierKeys modifierKeys
)
public:
static void Click(
UITestControl^ control,
ModifierKeys modifierKeys
)
static member Click :
control:UITestControl *
modifierKeys:ModifierKeys -> unit
public static function Click(
control : UITestControl,
modifierKeys : ModifierKeys
)
Parameters
control
Type: Microsoft.VisualStudio.TestTools.UITesting.UITestControlThe UITestControl to be clicked.
modifierKeys
Type: ModifierKeysModifierKeys to be pressed while clicking.
Examples
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.