ClassElementClickDescriptor
Click on desktop element.
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 ElementClickDescriptor : DesktopActionDescriptorBase, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject
Inheritance: objectDataBoundObjectAutomationDescriptorActionDescriptorDesktopActionDescriptorBaseElementClickDescriptor
Implements:
Inherited Members
Constructors
ElementClickDescriptor()
Create new instance of ElementClickDescriptor class.
Declaration
public ElementClickDescriptor()
ElementClickDescriptor(DesktopElement, ActionPoint)
Create new instance of ElementClickDescriptor class.
Declaration
public ElementClickDescriptor(DesktopElement target, ActionPoint clickPoint)
Parameters
target
DesktopElement on which the click is performed.
clickPoint
ActionPoint where the click is performed.
ElementClickDescriptor(DesktopElement, ActionPoint, DesktopCommandType)
Create new instance of ElementClickDescriptor class.
Declaration
public ElementClickDescriptor(DesktopElement target, ActionPoint clickPoint, DesktopCommandType desktopCommandClickType)
Parameters
target
DesktopElement on which the click is performed.
clickPoint
ActionPoint where the click is performed.
desktopCommandClickType
Mouse click type
ElementClickDescriptor(DesktopElement, ActionPoint, Keys, MouseClickType)
Create new instance of ElementClickDescriptor class.
Declaration
public ElementClickDescriptor(DesktopElement target, ActionPoint clickPoint, Keys modifierKeys, MouseClickType clickType)
Parameters
target
DesktopElement on which the click is performed.
clickPoint
ActionPoint where the click is performed.
modifierKeys
Modifiers keys which are pressed during the click.
clickType
Mouse click type
ElementClickDescriptor(DesktopElement, ActionPoint, MouseClickType)
Create new instance of ElementClickDescriptor class.
Declaration
public ElementClickDescriptor(DesktopElement target, ActionPoint clickPoint, MouseClickType clickType)
Parameters
target
DesktopElement on which the click is performed.
clickPoint
ActionPoint where the click is performed.
clickType
Mouse click type
ElementClickDescriptor(MouseClickType, int, int, OffsetReference, ActionPointUnitType)
Create new instance of ElementClickDescriptor class.
Declaration
public ElementClickDescriptor(MouseClickType mouseClickType, int xOffset, int yOffset, OffsetReference offsetType, ActionPointUnitType unitType)
Parameters
mouseClickType
Mouse click type.
xOffset
X offset from top left corner as percentage of element width.
yOffset
Y offset from top left corner as percentage of element height.
offsetType
Offset reference.
unitType
Offset unit type.
Properties
ClickType
Declaration
[PrimaryProperty]
[DataMember(Name = "ClickType", IsRequired = false)]
public MouseClickType ClickType { get; }
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
IsDoubleClick
Declaration
[DataMember(Name = "IsDoubleClick", IsRequired = false)]
public bool IsDoubleClick { get; set; }
Property Value
ModifierKeys
Declaration
public ModifierKeysWrapper ModifierKeys { get; set; }
Property Value
OffsetType
Declaration
[DataMember]
[PrimaryProperty]
public OffsetReference OffsetType { 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
UnitType
Declaration
[DataMember]
[PrimaryProperty]
public ActionPointUnitType UnitType { get; set; }
Property Value
UseOffset
Declaration
[DataMember(Name = "UseOffset")]
public bool UseOffset { get; set; }
Property Value
XOffset
Declaration
[DataMember]
[PrimaryProperty]
public int XOffset { get; set; }
Property Value
Methods
Execute(IAutomationHost)
Abstract method implemented by action descriptors
Declaration
public override void Execute(IAutomationHost hostApp)
Parameters
hostApp
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