Share via


UITestActionExecutor.SendKeys Method (UITechnologyElement, String, ModifierKeys, Boolean)

Sends the keystrokes to generate the specified text.

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

Syntax

'Declaration
Public MustOverride Sub SendKeys ( _
    control As UITechnologyElement, _
    text As String, _
    modifierKeys As ModifierKeys, _
    isUnicode As Boolean _
)
public abstract void SendKeys(
    UITechnologyElement control,
    string text,
    ModifierKeys modifierKeys,
    bool isUnicode
)
public:
virtual void SendKeys(
    UITechnologyElement^ control, 
    String^ text, 
    ModifierKeys modifierKeys, 
    bool isUnicode
) abstract
abstract SendKeys : 
        control:UITechnologyElement * 
        text:string * 
        modifierKeys:ModifierKeys * 
        isUnicode:bool -> unit
public abstract function SendKeys(
    control : UITechnologyElement, 
    text : String, 
    modifierKeys : ModifierKeys, 
    isUnicode : boolean
)

Parameters

  • text
    Type: String

    Text to type.

  • modifierKeys
    Type: ModifierKeys
  • isUnicode
    Type: Boolean

    If true, sends the keys as Unicode, otherwise as scan code

.NET Framework Security

See Also

Reference

UITestActionExecutor Class

SendKeys Overload

Microsoft.VisualStudio.TestTools.UITesting Namespace