Bagikan melalui


Keyboard.SendKeys Method

Include Protected Members
Include Inherited Members

Sends keystrokes to generate the specified text string.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodStatic member SendKeys(String) Sends keystrokes to generate the specified text string.
Public methodStatic member SendKeys(String, Boolean) Sends keystrokes to generate the specified text string.
Public methodStatic member SendKeys(String, ModifierKeys) Sends keystrokes to generate the specified text string.
Public methodStatic member SendKeys(UITestControl, String) Sends keystrokes to generate the specified text string.
Public methodStatic member SendKeys(String, ModifierKeys, Boolean) Sends keystrokes to generate the specified text string.
Public methodStatic member SendKeys(UITestControl, String, Boolean) Sends keystrokes to generate the specified text string.
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys) Sends keystrokes to the provided control to generate the specified text string by using the provided modifier keys.
Public methodStatic member SendKeys(String, ModifierKeys, Boolean, Boolean) Sends keystrokes to the provided control to generate the specified text string using the provided modifier keys and indicators for encoding and unicode.
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys, Boolean) Sends keystrokes to the provided control to generate the specified text string using the provided modifier keys and encoding indicator.
Public methodStatic member SendKeys(UITestControl, String, ModifierKeys, Boolean, Boolean) Sends keystrokes to the provided control to generate the specified text string by using the provided modifier keys and indicators for encoding and unicode.

Top

See Also

Reference

Keyboard Class

Microsoft.VisualStudio.TestTools.UITesting Namespace