Compartilhar via


Método Mouse.Click (UITestControl, ModifierKeys)

Clica o botão do mouse padrão no controle especificado enquanto pressiona as teclas modificadoras especificado.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (em Microsoft.VisualStudio.TestTools.UITesting.dll)

Sintaxe

'Declaração
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
)

Parâmetros

Exemplos

UITestControl

ModifierKeys

Segurança do .NET Framework

Consulte também

Referência

Mouse Classe

Sobrecargas Click

Namespace Microsoft.VisualStudio.TestTools.UITesting