KeyboardAction Constructor (UITechnologyElement, KeyActionType, Keys, String)
Initializes a new instance of the KeyboardAction class by using the provided element, type of key event, the key that was pressed, and the value that was generated by that key.
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
public KeyboardAction( UITechnologyElement uiElement, KeyActionType actionType, Keys key, string keyValue )
- Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
The UITechnologyElement that receives the input.
- Type: Microsoft.VisualStudio.TestTools.UITest.Common.KeyActionType
A member of the KeyActionType enumeration.
- Type: System.String
The value that was generated by the key press.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.