ClassImprovedImageVerificartionDescriptor
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 ImprovedImageVerificartionDescriptor : VerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorImprovedImageVerificartionDescriptor
Implements:
Inherited Members
Constructors
ImprovedImageVerificartionDescriptor()
Declaration
public ImprovedImageVerificartionDescriptor()
ImprovedImageVerificartionDescriptor(ITargetElement, ElementImage, int)
Declaration
public ImprovedImageVerificartionDescriptor(ITargetElement element, ElementImage imageData, int threshold)
Parameters
element
imageData
threshold
Properties
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
ImagePath
Declaration
[Browsable(false)]
[DataMember(Name = "ImagePath")]
public string ImagePath { get; }
Property Value
InitialScreenScale
Declaration
[Browsable(false)]
[DataMember(Name = "InitialScreenScale")]
public float InitialScreenScale { get; }
Property Value
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
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
This shouldn't matter
Declaration
public override TechnologyType TechnologyType { get; }
Property Value
Overrides
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