Compartilhar via


Método Mouse.Click (UITestControl, MouseButtons)

Clica no botão do mouse especificada no controle 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, _
    button As MouseButtons _
)
public static void Click(
    UITestControl control,
    MouseButtons button
)
public:
static void Click(
    UITestControl^ control, 
    MouseButtons button
)
static member Click : 
        control:UITestControl * 
        button:MouseButtons -> unit 
public static function Click(
    control : UITestControl, 
    button : MouseButtons
)

Parâmetros

Exemplos

UITestControl

MouseButtons

Segurança do .NET Framework

Consulte também

Referência

Mouse Classe

Sobrecargas Click

Namespace Microsoft.VisualStudio.TestTools.UITesting