ClassXamlActionDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.Extensibility
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public abstract class XamlActionDescriptor : ActionDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings
Inheritance: objectDataBoundObjectAutomationDescriptorActionDescriptorXamlActionDescriptor
Derived Classes:
Implements:
Inherited Members
Constructors
XamlActionDescriptor()
Declaration
protected XamlActionDescriptor()
XamlActionDescriptor(IFrameworkElement)
Declaration
protected XamlActionDescriptor(IFrameworkElement target)
Parameters
target
XamlActionDescriptor(string, IFrameworkElement)
Declaration
protected XamlActionDescriptor(string name, IFrameworkElement target)
Parameters
name
target
Properties
PrimaryTarget
Declaration
public override ElementDescriptor PrimaryTarget { get; set; }
Property Value
Overrides
SearchByImageFirst
Declaration
[Browsable(false)]
public SearchElementOrderType SearchByImageFirst { get; }
Property Value
SecondaryTarget
Declaration
public override ElementDescriptor SecondaryTarget { get; set; }
Property Value
Overrides
SimulateRealUser
Declaration
[DataMember(Name = "SimulateRealUser", IsRequired = false)]
public virtual bool SimulateRealUser { get; set; }
Property Value
TechnologyType
Gets the technology that this step runs against
Declaration
[DataMember(Name = "TechnologyType")]
public override TechnologyType TechnologyType { get; }
Property Value
Overrides
VirtualizingContainer
Declaration
public virtual ElementDescriptor VirtualizingContainer { get; set; }
Property Value
VirtualizingContainerOffset
Declaration
[DataMember(Name = "VirtualizingContainerOffset", IsRequired = false)]
public virtual double VirtualizingContainerOffset { get; set; }
Property Value
WaitForNoMotion
Declaration
[DataMember(Name = "WaitForNoMotion")]
public virtual bool WaitForNoMotion { get; set; }
Property Value
WaitForNoMotionCheckInterval
Declaration
[DataMember(Name = "WaitForNoMotionCheckInterval", IsRequired = false)]
public virtual int WaitForNoMotionCheckInterval { get; set; }
Property Value
Methods
CreateElementFindExpression(string)
Creates a CodeDOM expression for the element's terminal FindExpression
Declaration
protected override CodeExpression CreateElementFindExpression(string elementKey)
Parameters
elementKey
Key into this descriptors collection of element descriptors for the desired element
Returns
A CodeDOM expression that constructs a new FindExpression specifying the desired element
Overrides
Execute(IApplication)
Declaration
public abstract void Execute(IApplication app)
Parameters
app
Execute(IAutomationHost)
Abstract method implemented by action descriptors
Declaration
public override void Execute(IAutomationHost autoHost)
Parameters
autoHost
Overrides
InspectWebSettings(UserSettings)
Called before the descriptor is recorded into the project in case the descriptor needs to modify its properties according to the project settings
Declaration
public virtual void InspectWebSettings(UserSettings settings)
Parameters
settings
The current project settings
Implements
ToPercentage(Point, RectangleF)
Creates a point based on an X and Y percentage within a rectangle
Declaration
protected Point ToPercentage(Point p, RectangleF rect)
Parameters
p
Point encapsulating the percentages
rect
The rectangle to calculate within
Returns
A point at (p.X%, p.Y%) within rect