ClassVisibleVerificationDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
[Sentence("Visible", "Verify element {IsVisible}", false)]
[SupportsImageCapture(true)]
public class VisibleVerificationDescriptor : HtmlVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IQuickTasks, ISentenceListPreview
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorHtmlVerificationDescriptorVisibleVerificationDescriptor
Implements:
Inherited Members
Constructors
VisibleVerificationDescriptor()
Create new attribute verification
Declaration
public VisibleVerificationDescriptor()
VisibleVerificationDescriptor(Element, bool)
Create a new attribute verification
Properties
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
IsVisible
Declaration
[DataDriven]
[DataMember(Name = "IsVisible")]
[SentenceParam("visible?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
public bool IsVisible { get; set; }
Property Value
PrimaryTargetKey
Gets the primary target key
Declaration
public override string PrimaryTargetKey { get; }
Property Value
Overrides
Methods
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
GeneratePreviewValuesForTarget(DescriptorValueStoreCollection)
Given a target element, generate an array of values for the descriptor implementing this interface.
Declaration
public void GeneratePreviewValuesForTarget(DescriptorValueStoreCollection valuesCollection)
Parameters
valuesCollection
DescriptorValueStoreCollection
Collection to add values to
Implements
GetQuickTasks()
Declaration
public virtual IQuickTask[] GetQuickTasks()
Returns
Implements
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