ClassExistsVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
[Sentence("Exists", "Wait for element 'exists' is {Exists}", false)]
[SupportsImageCapture(false)]
[ImageNotApplicableNotification("Wait for exist step does not record image by default.")]
public class ExistsVerificationDescriptor : VerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IQuickTasks
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorExistsVerificationDescriptor
Derived Classes:
Implements:
Inherited Members
Constructors
ExistsVerificationDescriptor()
Declaration
public ExistsVerificationDescriptor()
ExistsVerificationDescriptor(ITargetElement, bool)
Create a new ExistsVerificationDescriptor
Declaration
public ExistsVerificationDescriptor(ITargetElement element, bool existsNot)
Parameters
element
The target element
existsNot
Properties
Exists
Declaration
[PrimaryProperty]
[SentenceParam("exists?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
[DataDriven]
public bool Exists { get; set; }
Property Value
ExistsNot
Gets or sets whether to verify non-existence
Declaration
[Browsable(false)]
[DataMember(Name = "ExistsNot")]
[PrimaryProperty]
public bool ExistsNot { 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
IsWaitOnly
Gets whether this descriptor can only be used for sync.
Declaration
public override bool IsWaitOnly { get; }
Property Value
Overrides
PrimaryTarget
Declaration
public override ElementDescriptor PrimaryTarget { get; set; }
Property Value
Overrides
PrimaryTargetKey
Gets the primary target key
Declaration
[Browsable(false)]
public override string PrimaryTargetKey { get; }
Property Value
Overrides
SearchByImageFirst
Declaration
[Browsable(false)]
public SearchElementOrderType SearchByImageFirst { get; }
Property Value
TechnologyType
Gets the technology that this step runs against
Declaration
public override TechnologyType TechnologyType { get; }
Property Value
Overrides
UseStepWaitOnElementsTimout
Declaration
[Browsable(false)]
public override bool UseStepWaitOnElementsTimout { get; set; }
Property Value
Overrides
WaitOnElements
Declaration
[Browsable(false)]
[DataMember(Name = "WaitOnElements")]
public override bool WaitOnElements { get; set; }
Property Value
Overrides
WaitOnElementsTimeout
Declaration
[Browsable(false)]
[DataMember(Name = "WaitOnElementsTimeout")]
public override int WaitOnElementsTimeout { get; set; }
Property Value
Overrides
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
ExtractData(IAutomationHost, DescriptorValueStore)
Extract verification data from the live Targets.
Declaration
public override void ExtractData(IAutomationHost targetBrowser, DescriptorValueStore dataStore)
Parameters
targetBrowser
The target browser.
dataStore
Overrides
GetQuickTasks()
Declaration
public virtual IQuickTask[] GetQuickTasks()
Returns
Implements
PerformWait(IAutomationHost)
Helper routine that can perform a wait until the verification defined by this descriptor passes or the this.Timeout is reached.
Declaration
public override VerificationWaitResult PerformWait(IAutomationHost host)
Parameters
host
The host object
Returns
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
Verify(DescriptorValueStore)
Given a value store, verify against the constraints defined by this descriptor
Declaration
public override VerificationResult Verify(DescriptorValueStore dataStore)
Parameters
dataStore
The data store were values are captured
Returns
The verification result.
Overrides