ClassKeyPressDescriptor
Presses a key.
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.DesktopAutomation.Descriptors.Actions
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class KeyPressDescriptor : DesktopActionDescriptorBase, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject
Inheritance: objectDataBoundObjectAutomationDescriptorActionDescriptorDesktopActionDescriptorBaseKeyPressDescriptor
Implements:
Inherited Members
Constructors
KeyPressDescriptor()
Create new instance of KeyPressDescriptor class.
Declaration
public KeyPressDescriptor()
Properties
Control
Declaration
[PrimaryProperty]
public bool Control { get; set; }
Property Value
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
Key
Declaration
[DataDriven]
[PrimaryProperty]
public NormalizedKeys Key { get; set; }
Property Value
RequiredAssemblyReferences
Any addition assembly references to be added to the project on code gen.
Declaration
public override string[] RequiredAssemblyReferences { get; }
Property Value
string[]
Overrides
UseStepWaitOnElementsTimout
Declaration
[Browsable(false)]
public override bool UseStepWaitOnElementsTimout { get; set; }
Property Value
Overrides
WaitOnElementsTimeout
Declaration
[Browsable(false)]
public override int WaitOnElementsTimeout { get; set; }
Property Value
Overrides
Methods
Execute(IAutomationHost)
Abstract method implemented by action descriptors
Declaration
public override void Execute(IAutomationHost autoHost)
Parameters
autoHost
Overrides
ToCode()
This method is called when the user requests code generation. The framework initializes the TestMethod property of this object with a new instance that this method simply needs to add its custom codegen to it.
Declaration
public override void ToCode()
Overrides