ClassStyleVerificationDescriptor
class for verifying styles
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/1.0.0")]
[Sentence("Style", "Select {StyleSelectionType} {StyleCategory} {StyleFont} {StyleColorAndBackground} {StyleText} {StyleDisplay} {StyleBox} {StyleList} {CompareType} {Value}", false)]
[SupportsImageCapture(true)]
public class StyleVerificationDescriptor : HtmlVerificationDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings, IExtendedParamEditorInfo, ISentenceListPreview
Inheritance: objectDataBoundObjectAutomationDescriptorVerificationDescriptorHtmlVerificationDescriptorStyleVerificationDescriptor
Implements:
Inherited Members
Constructors
StyleVerificationDescriptor()
Create a new style descriptor.
Declaration
public StyleVerificationDescriptor()
StyleVerificationDescriptor(Element, HtmlStyleDescriptor, StringCompareType, string)
Create a new style descriptor
Declaration
public StyleVerificationDescriptor(Element targetElement, HtmlStyleDescriptor styleDescriptor, StringCompareType compareType, string value)
Parameters
targetElement
styleDescriptor
compareType
value
Properties
CompareType
Gets or sets the string compare type.
Declaration
[DataMember(Name = "CompareType")]
[SentenceParam("compare?", AutomationDescriptorType.Extraction)]
public StringCompareType CompareType { get; set; }
Property Value
FriendlyDescription
Gets the friendly description of the style.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
PrimaryTargetKey
Gets the primary target key
Declaration
public override string PrimaryTargetKey { get; }
Property Value
Overrides
StyleBox
Declaration
[Browsable(false)]
[SentenceParam("box?", IsVisible = false)]
public HtmlStyleBox StyleBox { get; set; }
Property Value
StyleCategory
Declaration
[Browsable(false)]
[SentenceParam("category?")]
public HtmlStyleCategory StyleCategory { get; set; }
Property Value
StyleColorAndBackground
Declaration
[Browsable(false)]
[SentenceParam("color/background?", IsVisible = false)]
public HtmlStyleColorAndBackground StyleColorAndBackground { get; set; }
Property Value
StyleDescriptor
Gets or sets the Style descriptor
Declaration
[DataMember(Name = "StyleDescriptor")]
public HtmlStyleDescriptor StyleDescriptor { get; set; }
Property Value
StyleDisplay
Declaration
[Browsable(false)]
[SentenceParam("display?", IsVisible = false)]
public HtmlStyleDisplay StyleDisplay { get; set; }
Property Value
StyleFont
Declaration
[Browsable(false)]
[SentenceParam("font?", IsVisible = false)]
public HtmlStyleFont StyleFont { get; set; }
Property Value
StyleList
Declaration
[Browsable(false)]
[SentenceParam("list?", IsVisible = false)]
public HtmlStyleList StyleList { get; set; }
Property Value
StyleSelectionType
Declaration
[Browsable(false)]
[SentenceParam("type?")]
public HtmlStyleType StyleSelectionType { get; set; }
Property Value
StyleText
Declaration
[Browsable(false)]
[SentenceParam("text?", IsVisible = false)]
public HtmlStyleText StyleText { get; set; }
Property Value
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
GetExtendedEditorInfo(DescriptorValueStore)
Collect additional values for each parameter to be used by the editor
Declaration
public void GetExtendedEditorInfo(DescriptorValueStore valueStore)
Parameters
valueStore
The value store to add values in
Implements
OnParameterChanged(SentenceParam, Sentence)
Called when a parameter value has changed
Declaration
public void OnParameterChanged(SentenceParam param, Sentence context)
Parameters
param
The parameter that changed
context
The context/sentence that this parameter is part of.
Implements
OnSentenceLoad(Sentence)
Called when the sentence is first loaded. Allows for setting initial values for each sentence if needed
Declaration
public void OnSentenceLoad(Sentence context)
Parameters
context
The sentence context.
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