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.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Common
Assembly: Microsoft.VisualStudio.TestTools.UITest.Common (in Microsoft.VisualStudio.TestTools.UITest.Common.dll)
Syntax
public KeyboardAction(
UITechnologyElement uiElement,
KeyActionType actionType,
Keys key,
string keyValue
)
public:
KeyboardAction(
UITechnologyElement^ uiElement,
KeyActionType actionType,
Keys key,
String^ keyValue
)
new :
uiElement:UITechnologyElement *
actionType:KeyActionType *
key:Keys *
keyValue:string -> KeyboardAction
Public Sub New (
uiElement As UITechnologyElement,
actionType As KeyActionType,
key As Keys,
keyValue As String
)
Parameters
uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementThe UITechnologyElement that receives the input.
actionType
Type: Microsoft.VisualStudio.TestTools.UITest.Common.KeyActionTypeA member of the KeyActionType enumeration.
key
Type: System.Windows.Forms.KeysA member of the Keys enumeration.
keyValue
Type: System.StringThe value that was generated by the key press.
See Also
UITechnologyElement
KeyActionType
Keys
KeyboardAction Overload
KeyboardAction Class
Microsoft.VisualStudio.TestTools.UITest.Common Namespace
Return to top