ClassTextFromImageVerificationDescriptor
Image verification descriptor implementation
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
[SupportsImageCapture(true)]
public class TextFromImageVerificationDescriptor : VerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IQuickTasks
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorTextFromImageVerificationDescriptor
Implements:
Inherited Members
Constructors
TextFromImageVerificationDescriptor()
Declaration
public TextFromImageVerificationDescriptor()
TextFromImageVerificationDescriptor(ITargetElement, string, StringCompareType, Rectangle)
Declaration
public TextFromImageVerificationDescriptor(ITargetElement element, string extractedText, StringCompareType compareType, Rectangle selectedArea)
Parameters
element
extractedText
compareType
selectedArea
Properties
CompareType
Compare Type to do the text verification
Declaration
[DataMember(Name = "CompareType")]
[SentenceParam("compare?", AutomationDescriptorType.Extraction)]
public StringCompareType CompareType { 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
ScrollToVisible
Declaration
[DataMember(Name = "ScrollToVisible")]
[PrimaryProperty]
public bool ScrollToVisible { get; set; }
Property Value
ScrollToVisibleType
Gets/Sets how to scroll the element.
Declaration
[DataMember(IsRequired = false)]
[PrimaryProperty]
public ScrollToVisibleType ScrollToVisibleType { get; set; }
Property Value
SearchByImageFirst
Declaration
[Browsable(false)]
public override SearchElementOrderType SearchByImageFirst { get; set; }
Property Value
Overrides
SelectedArea
Declaration
[DataMember(IsRequired = false)]
[Browsable(false)]
public Rectangle SelectedArea { get; set; }
Property Value
SelectedAreaExtraction
Declaration
[Browsable(true)]
[PrimaryProperty]
public bool SelectedAreaExtraction { get; }
Property Value
SupportsConvertToCode
Whether the descriptor supports convert to code or not.
Declaration
public override bool SupportsConvertToCode { get; }
Property Value
Overrides
SupportsExtraction
Declaration
public override bool SupportsExtraction { get; }
Property Value
Overrides
TechnologyType
Gets the technology that this step runs against
Declaration
public override TechnologyType TechnologyType { get; }
Property Value
Overrides
TextToMatch
Declaration
[DataDriven]
[DataMember(Name = "TextToMatch")]
[SentenceParam("value?", AutomationDescriptorType.Extraction, IsExtractedValue = true)]
[PrimaryProperty]
public string TextToMatch { get; set; }
Property Value
Methods
ExecuteScrollToVisible()
Declaration
public virtual void ExecuteScrollToVisible()
ExtractData(IAutomationHost, DescriptorValueStore)
Extract the histogram from the image.
Declaration
public override void ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
Parameters
targetHost
dataStore
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)
Perform the verification.
Declaration
public override VerificationResult Verify(DescriptorValueStore dataStore)
Parameters
dataStore
Returns
Overrides