Class
FindExpressionElement

Definition

Namespace:ArtOfTest.Common.Design.ProjectModel.Elements

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class FindExpressionElement : DataBoundObject, INodeData, INotifyPropertyChanged

Inheritance: objectDataBoundObjectFindExpressionElement

Implements: INodeDataINotifyPropertyChanged

Inherited Members DataBoundObject._dataDataBoundObject.BindData<T>(string)DataBoundObject.BindDataCode(string)DataBoundObject.BindDataCode(string, PropertyInfo)DataBoundObject.Data

Constructors

FindExpressionElement()

Used for serialization.

Declaration

cs-api-definition
public FindExpressionElement()

FindExpressionElement(List<KeyValuePair<TechnologyType, IFindExpression>>, string, TechnologyType, int)

Create a new FindExpressionElement from a list of FindExpressions

Declaration

cs-api-definition
public FindExpressionElement(List<KeyValuePair<TechnologyType, IFindExpression>> exprs, string name, TechnologyType tech, int kind)

Parameters

exprs

List<KeyValuePair<TechnologyType, IFindExpression>>

List containing a FindExpression chain that specifies the target element this object wraps

name

string

Human-readable name for the terminal node in the chain

tech

TechnologyType

kind

int

Fields

DATA_EXPRESSION

Declaration

cs-api-definition
public const string DATA_EXPRESSION = "Expression"

Field Value

string

Properties

BackupSearchClause

Backup search clause generated by the designer. This backup search clause is used to help diagnose

Declaration

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

Property Value

string

ContainerName

Declaration

cs-api-definition
[Browsable(false)]
[DataMember(Name = "ContainerName", IsRequired = false, EmitDefaultValue = false)]
public string ContainerName { get; set; }

Property Value

string

ControlType

Declaration

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

Property Value

Type

DataBindingExpressions

Declaration

cs-api-definition
[Browsable(false)]
[DataDriven]
[DataMember(Name = "DataBindingExpressions")]
public Dictionary<string, string> DataBindingExpressions { get; set; }

Property Value

Dictionary<string, string>

DataBoundFindExpressions

Declaration

cs-api-definition
[Browsable(false)]
public List<KeyValuePair<TechnologyType, IFindExpression>> DataBoundFindExpressions { get; }

Property Value

List<KeyValuePair<TechnologyType, IFindExpression>>

Expression

Declaration

cs-api-definition
[Browsable(false)]
public string Expression { get; }

Property Value

string

ExpressionDummyElement

Declaration

cs-api-definition
public string ExpressionDummyElement { get; }

Property Value

string

FindExpressions

Gets / Sets the list of find expressions identifying the element wrapped by this node

Declaration

cs-api-definition
[Browsable(false)]
[DataMember(Name = "FindExpressions")]
public IList<KeyValuePair<TechnologyType, IFindExpression>> FindExpressions { get; }

Property Value

IList<KeyValuePair<TechnologyType, IFindExpression>>

FindLogic

Get the find logic string to display to the user.

Declaration

cs-api-definition
[Browsable(false)]
public string FindLogic { get; }

Property Value

string

FindLogicDummyElement

Declaration

cs-api-definition
public string FindLogicDummyElement { get; }

Property Value

string

FriendlyName

Gets / Sets the human-readable name of this element node

Declaration

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

Property Value

string

Implements INodeData.FriendlyName

ImageSearchClauses

Contains information about image search. Everty element may have multiple images associated (depending on screen resolution and browser type).

Declaration

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

Property Value

ImageSearchClause[]

IsDataDriven

Declaration

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

Property Value

bool

IsFullyBoundValue

Declaration

cs-api-definition
[Browsable(false)]
public bool IsFullyBoundValue { get; }

Property Value

bool

Kind

Gets the NodeKind of this element

Declaration

cs-api-definition
[DataMember(Name = "NodeKind")]
[Browsable(false)]
public int Kind { get; }

Property Value

int

Implements INodeData.Kind

TechnologyType

The technology type

Declaration

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

Property Value

TechnologyType

VariableReference

Code variable reference for code gen

Declaration

cs-api-definition
[Browsable(false)]
public CodeExpression VariableReference { get; set; }

Property Value

CodeExpression

Implements INodeData.VariableReference

Methods

BindData(string)

If the descriptor supports data driven tests, then it can use this expand method to expand bindable properties or data before execution.

Declaration

cs-api-definition
protected override object BindData(string expression)

Parameters

expression

string

Returns

object

The expanded expression (if it contains and data binding expression), else the property value unexpanded

Overrides DataBoundObject.BindData(string)

BindDataCode(string, string, Type)

Declaration

cs-api-definition
protected override object BindDataCode(string descriptorPropertyName, string controlPropertyName, Type controlPropertyType)

Parameters

descriptorPropertyName

string

controlPropertyName

string

controlPropertyType

Type

Returns

object

Overrides DataBoundObject.BindDataCode(string, string, Type)

Clone()

Creates a copy of this element

Declaration

cs-api-definition
public INodeData Clone()

Returns

INodeData

Implements INodeData.Clone()

CopyTo(INodeData)

Not yet implemented

Declaration

cs-api-definition
public void CopyTo(INodeData o)

Parameters

o

INodeData

Implements INodeData.CopyTo(INodeData)

GetExpression()

Declaration

cs-api-definition
public IFindExpression GetExpression()

Returns

IFindExpression

GetUniqueKey()

Gets a string uniquely identifying this expression element

Declaration

cs-api-definition
public string GetUniqueKey()

Returns

string

Implements INodeData.GetUniqueKey()

IsDataBound(string)

Gets whether a property of this descriptor is data bound or not.

Declaration

cs-api-definition
protected override bool IsDataBound(string propertyName)

Parameters

propertyName

string

The property to check.

Returns

bool

True/False whether the property is data bound.

Overrides DataBoundObject.IsDataBound(string)

Match(INodeData)

Compare two FindExpressionElements

Declaration

cs-api-definition
public bool Match(INodeData obj)

Parameters

obj

INodeData

Returns

bool

Implements INodeData.Match(INodeData)

OnPropertyChanged(string)

Invoked when a property changes.

Declaration

cs-api-definition
protected void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

The property name that changed.

ToString()

String representation of this expression.

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()

UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>>, string)

Update the list of expressions. Does not fire on property changed

Declaration

cs-api-definition
public void UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>> expressions, string backup)

Parameters

expressions

IList<KeyValuePair<TechnologyType, IFindExpression>>

The expressions

backup

string

The backup

UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>>, string, ImageSearchClause[])

Update the list of expressions. Does not fire on property changed

Declaration

cs-api-definition
public void UpdateExpressions(IList<KeyValuePair<TechnologyType, IFindExpression>> expressions, string backup, ImageSearchClause[] imageSearchClauses)

Parameters

expressions

IList<KeyValuePair<TechnologyType, IFindExpression>>

The expressions

backup

string

The backup

imageSearchClauses

ImageSearchClause[]

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged