Class
ElementDescriptor

Class used to describe an element used for automation and persist it.

Definition

Namespace:ArtOfTest.Common.Design.Extensibility.Descriptors

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
[KnownType(typeof(Type))]
public class ElementDescriptor : IExtensibleDataObject

Inheritance: objectElementDescriptor

Implements: IExtensibleDataObject

Constructors

ElementDescriptor()

Create an empty element descriptor

Declaration

cs-api-definition
public ElementDescriptor()

ElementDescriptor(string, INodeData, INodeData, FindExpressionElement, Type)

Declaration

cs-api-definition
public ElementDescriptor(string name, INodeData page, INodeData frame, FindExpressionElement findExprElement, Type customType)

Parameters

name

string

page

INodeData

frame

INodeData

findExprElement

FindExpressionElement

customType

Type

ElementDescriptor(string, INodeData, INodeData, INodeData, FindExpressionElement, Type, string)

Create the ElementDescriptor with its values

Declaration

cs-api-definition
public ElementDescriptor(string name, INodeData page, INodeData frame, INodeData region, FindExpressionElement findExprElement, Type controlType, string domStateKey)

Parameters

name

string

page

INodeData

The Page

frame

INodeData

The Frame

region

INodeData

The Region

findExprElement

FindExpressionElement

The Find logic

controlType

Type

domStateKey

string

Properties

DomStateKey

Gets or sets the DOM State Key

Declaration

cs-api-definition
[DataMember(Name = "DomStateKey")]
public string DomStateKey { get; set; }

Property Value

string

ExtensionData

Declaration

cs-api-definition
public ExtensionDataObject ExtensionData { get; set; }

Property Value

ExtensionDataObject

Implements IExtensibleDataObject.ExtensionData

FindExpressionInfo

Declaration

cs-api-definition
[DataMember(Name = "FindExpression")]
[Browsable(false)]
public FindExpressionElement FindExpressionInfo { get; set; }

Property Value

FindExpressionElement

Frame

The frame info that contains this element.

Declaration

cs-api-definition
[DataMember(Name = "Frame")]
public INodeData Frame { get; set; }

Property Value

INodeData

HasFrame

Gets whether the descriptor defines a frame or not.

Declaration

cs-api-definition
public bool HasFrame { get; }

Property Value

bool

HasRegion

Gets whether the descriptor defines a test region or not

Declaration

cs-api-definition
public bool HasRegion { get; }

Property Value

bool

HtmlControlType

Gets the HtmlControlType

Declaration

cs-api-definition
public Type HtmlControlType { get; set; }

Property Value

Type

HtmlControlTypeString

Get or sets the HtmlControl type string.

Declaration

cs-api-definition
[DataMember(Name = "HtmlControlType")]
public string HtmlControlTypeString { get; set; }

Property Value

string

IsIndependent

Gets whether this descriptor is independent of a test.

Declaration

cs-api-definition
[DataMember(Name = "IsIndependent")]
public bool IsIndependent { get; set; }

Property Value

bool

Name

Gets/Sets the name of this element descriptor as used by its action/verification descriptor

Declaration

cs-api-definition
[DataMember(Name = "Name")]
public string Name { get; set; }

Property Value

string

OwnerStep

Gets or sets the owner automation step.

Declaration

cs-api-definition
public AutomationStepBase OwnerStep { get; set; }

Property Value

AutomationStepBase

OwnerStepDescription

Declaration

cs-api-definition
public string OwnerStepDescription { get; set; }

Property Value

string

OwnerStepOrder

Declaration

cs-api-definition
public int OwnerStepOrder { get; set; }

Property Value

int

OwnerStepRuntimeId

Declaration

cs-api-definition
public Guid OwnerStepRuntimeId { get; set; }

Property Value

Guid

PageUri

The PageUri that contains this element.

Declaration

cs-api-definition
[DataMember(Name = "Page")]
public INodeData PageUri { get; set; }

Property Value

INodeData

Region

The region id of this element (if any).

Declaration

cs-api-definition
[DataMember(Name = "Region")]
public INodeData Region { get; set; }

Property Value

INodeData

TechnologyType

Gets the technology type of the element descriptor

Declaration

cs-api-definition
[DataMember(Name = "TechnologyType")]
public TechnologyType TechnologyType { get; }

Property Value

TechnologyType

Methods

ToString()

String representation of this element descriptor

Declaration

cs-api-definition
public override string ToString()

Returns

string

The string of that represents this ElementDescriptor

Overrides object.ToString()

Extension Methods