Class
DesktopFindClause

Holds a single clause as part of a desktop element FindExpression.

Definition

Namespace:ArtOfTest.WebAii.DesktopAutomation.FindExpressions

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class DesktopFindClause : FindClause

Inheritance: objectFindClauseDesktopFindClause

Inherited Members FindClause.ToString()FindClause.GetSpecialCharForCompareType(FindCompareType)FindClause.ClauseFindClause.NameFindClause.ValueFindClause.IsHierarchicalFindClause.PriorityFindClause.CompareType

Constructors

DesktopFindClause()

Create new instance of DesktopFindClause class.

Declaration

cs-api-definition
public DesktopFindClause()

DesktopFindClause(string)

Create new instance of DesktopFindClause class.

Declaration

cs-api-definition
public DesktopFindClause(string clause)

Parameters

clause

string

A clause expression.

Methods

ExtractValue(string, ITargetElement)

Given a specific search term, get the actual value from the passed in target element.

Declaration

cs-api-definition
public override string ExtractValue(string propertyName, ITargetElement element)

Parameters

propertyName

string

element

ITargetElement

The target element to use.

Returns

string

The actual value of that search term.

Overrides FindClause.ExtractValue(string, ITargetElement)

Match(ITargetElement)

Match this expression.

Declaration

cs-api-definition
public override bool Match(ITargetElement element)

Parameters

element

ITargetElement

The element to match

Returns

bool

True/False whether the clause matches this element.

Overrides FindClause.Match(ITargetElement)

Match(ITargetElement, ITargetElement)

Match this expression starting at a specific element

Declaration

cs-api-definition
public override bool Match(ITargetElement element, ITargetElement startElement)

Parameters

element

ITargetElement

startElement

ITargetElement

Returns

bool

Overrides FindClause.Match(ITargetElement, ITargetElement)

OnParsed()

Called once the expression is parsed. Extenders can override this method to allow for post processing after parsing.

Declaration

cs-api-definition
public override void OnParsed()

Overrides FindClause.OnParsed()