Share via


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

  • modifierKeys
    Type: ModifierKeys

    ModifierKeys to be pressed while clicking.

Examples

UITestControl

ModifierKeys

.NET Framework Security

See Also

Reference

Mouse Class

Click Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace