Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides static methods for performing automated keyboard actions.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TestTools.UITesting.Keyboard
Namespace: Microsoft.VisualStudio.TestTools.UITesting
Assembly: Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Class Keyboard _
Implements IDisposable
public class Keyboard : IDisposable
public ref class Keyboard : IDisposable
type Keyboard =
class
interface IDisposable
end
public class Keyboard implements IDisposable
The Keyboard type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
Keyboard | Infrastructure. Initializes a new instance of the Keyboard class. |
Top
Properties
Name | Description | |
---|---|---|
![]() ![]() |
Instance | Gets or sets the keyboard instance. |
![]() ![]() |
SendKeysDelay | Gets or sets the time to wait between sending keystrokes to the application. |
Top
Methods
Name | Description | |
---|---|---|
![]() |
Dispose() | Releases all resources that are used by the current instance of the Keyboard class. |
![]() |
Dispose(Boolean) | Releases the unmanaged resources that are used by the Keyboard and optionally releases the managed resources. |
![]() |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Releases unmanaged resources and performs other cleanup operations before this Keyboard instance is reclaimed by garbage collection. (Overrides Object.Finalize().) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() |
PressModifierKeys(ModifierKeys) | Presses the specified modifier keys without releasing them. |
![]() ![]() |
PressModifierKeys(UITestControl, ModifierKeys) | Presses the specified modifier keys in the given control without releasing them. |
![]() |
PressModifierKeysImplementation | Presses the specified modifier keys without releasing them. |
![]() ![]() |
ReleaseModifierKeys(ModifierKeys) | Releases the specified keys that were previously pressed by using the PressModifierKeys method. |
![]() ![]() |
ReleaseModifierKeys(UITestControl, ModifierKeys) | Releases the specified keys that were previously pressed by using the PressModifierKeys method in the given control. |
![]() |
ReleaseModifierKeysImplementation | Infrastructure. Presses the specified modifier keys in the given control without releasing them. |
![]() ![]() |
SendKeys(String) | Sends keystrokes to generate the specified text string. |
![]() ![]() |
SendKeys(String, Boolean) | Sends keystrokes to generate the specified text string. |
![]() ![]() |
SendKeys(String, ModifierKeys) | Sends keystrokes to generate the specified text string. |
![]() ![]() |
SendKeys(UITestControl, String) | Sends keystrokes to generate the specified text string. |
![]() ![]() |
SendKeys(String, ModifierKeys, Boolean) | Sends keystrokes to generate the specified text string. |
![]() ![]() |
SendKeys(UITestControl, String, Boolean) | Sends keystrokes to generate the specified text string. |
![]() ![]() |
SendKeys(UITestControl, String, ModifierKeys) | Sends keystrokes to the provided control to generate the specified text string by using the provided modifier keys. |
![]() ![]() |
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. |
![]() ![]() |
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. |
![]() ![]() |
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. |
![]() |
SendKeysImplementation | |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.