Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public KeyboardAction(
	UITechnologyElement uiElement,
	KeyActionType actionType,
	Keys key,
	string keyValue
)

Parameters

uiElement
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElement
The UITechnologyElement that receives the input.
actionType
Type: Microsoft.VisualStudio.TestTools.UITest.Common.KeyActionType
A member of the KeyActionType enumeration.
key
Type: System.Windows.Forms.Keys
A member of the Keys enumeration.
keyValue
Type: System.String
The value that was generated by the key press.

Community Additions

ADD
Show:
© 2015 Microsoft