Class
HtmlFindExpression

An Html find expression. This expression replaced FindParams that are being deprecated.

Definition

Namespace:ArtOfTest.WebAii.Core

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class HtmlFindExpression : FindExpression<HtmlFindClause>, IFindExpression

Inheritance: objectFindExpression<HtmlFindClause>HtmlFindExpression

Implements: IFindExpression

Inherited Members FindExpression<HtmlFindClause>.AppendChain(IFindExpression)FindExpression<HtmlFindClause>.AppendClauses(bool, params string[])FindExpression<HtmlFindClause>.Initialize(string[])FindExpression<HtmlFindClause>.Match(ITargetElement)FindExpression<HtmlFindClause>.CheckConstraints(ITargetElement)FindExpression<HtmlFindClause>.GetClauses(int)FindExpression<HtmlFindClause>.AddHierarchyConstraint(HierarchyConstraint)FindExpression<HtmlFindClause>.ToString()FindExpression<HtmlFindClause>.Update(string[])FindExpression<HtmlFindClause>.FindClausesFindExpression<HtmlFindClause>.IsChainedFindExpression<HtmlFindClause>.HasConstraintsFindExpression<HtmlFindClause>.ConstraintsFindExpression<HtmlFindClause>.ChainStopsFindExpression<HtmlFindClause>.HasHierarchicalDependencyFindExpression<HtmlFindClause>.StringRepresentationFindExpression<HtmlFindClause>.Clauses

Constructors

HtmlFindExpression()

Create an empty expression.

Declaration

cs-api-definition
public HtmlFindExpression()

HtmlFindExpression(params string[])

Create a new FindExpression.

Declaration

cs-api-definition
public HtmlFindExpression(params string[] findClauses)

Parameters

findClauses

string[]

The find clauses

Properties

SupportedSearchType

Gets the supported search type as a Type object.

Declaration

cs-api-definition
public override Type SupportedSearchType { get; }

Property Value

Type

Overrides FindExpression<HtmlFindClause>.SupportedSearchType

Methods

AddClause(string)

Add the clause to the collection.

Declaration

cs-api-definition
public override void AddClause(string clause)

Parameters

clause

string

The clause to add.

Overrides FindExpression<HtmlFindClause>.AddClause(string)

Match(ITargetElement, IList<FindClause>, bool)

Match a set of clauses against a target.

Declaration

cs-api-definition
public override bool Match(ITargetElement target, IList<FindClause> clauses, bool ignoreConstraints)

Parameters

target

ITargetElement

The target element to match.

clauses

IList<FindClause>

The list of clauses to use during the match test.

ignoreConstraints

bool

Whether or not to ignore any contraints contained in the clauses.

Returns

bool

Overrides FindExpression<HtmlFindClause>.Match(ITargetElement, IList<FindClause>, bool)

Match(ITargetElement, IList<FindClause>, bool, ITargetElement)

Match a specific set of clauses.

Declaration

cs-api-definition
public override bool Match(ITargetElement target, IList<FindClause> clauses, bool ignoreConstraints, ITargetElement root)

Parameters

target

ITargetElement

The target element to match.

clauses

IList<FindClause>

A list of clauses to test for a match.

ignoreConstraints

bool

Whether or not to ignore any constraints attached to the clauses.

root

ITargetElement

Root element of search tree.

Returns

bool

Overrides FindExpression<HtmlFindClause>.Match(ITargetElement, IList<FindClause>, bool, ITargetElement)