Class
FindAttribute

The Find attribute may be set on classes or test methods to define a find expression that may be used later in your code to find that element.

Definition

Namespace:ArtOfTest.WebAii.TestAttributes

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class FindAttribute : Attribute, _Attribute

Inheritance: objectAttributeFindAttribute

Implements: _Attribute

Inherited Members Attribute.GetCustomAttributes(MemberInfo, Type)Attribute.GetCustomAttributes(MemberInfo, Type, bool)Attribute.GetCustomAttributes(MemberInfo)Attribute.GetCustomAttributes(MemberInfo, bool)Attribute.IsDefined(MemberInfo, Type)Attribute.IsDefined(MemberInfo, Type, bool)Attribute.GetCustomAttribute(MemberInfo, Type)Attribute.GetCustomAttribute(MemberInfo, Type, bool)Attribute.GetCustomAttributes(ParameterInfo)Attribute.GetCustomAttributes(ParameterInfo, Type)Attribute.GetCustomAttributes(ParameterInfo, Type, bool)Attribute.GetCustomAttributes(ParameterInfo, bool)Attribute.IsDefined(ParameterInfo, Type)Attribute.IsDefined(ParameterInfo, Type, bool)Attribute.GetCustomAttribute(ParameterInfo, Type)Attribute.GetCustomAttribute(ParameterInfo, Type, bool)Attribute.GetCustomAttributes(Module, Type)Attribute.GetCustomAttributes(Module)Attribute.GetCustomAttributes(Module, bool)Attribute.GetCustomAttributes(Module, Type, bool)Attribute.IsDefined(Module, Type)Attribute.IsDefined(Module, Type, bool)Attribute.GetCustomAttribute(Module, Type)Attribute.GetCustomAttribute(Module, Type, bool)Attribute.GetCustomAttributes(Assembly, Type)Attribute.GetCustomAttributes(Assembly, Type, bool)Attribute.GetCustomAttributes(Assembly)Attribute.GetCustomAttributes(Assembly, bool)Attribute.IsDefined(Assembly, Type)Attribute.IsDefined(Assembly, Type, bool)Attribute.GetCustomAttribute(Assembly, Type)Attribute.GetCustomAttribute(Assembly, Type, bool)Attribute.Equals(object)Attribute.GetHashCode()Attribute.Match(object)Attribute.IsDefaultAttribute()Attribute.TypeId

Constructors

FindAttribute()

Create a new FindExpression attribute

Declaration

cs-api-definition
public FindAttribute()

FindAttribute(string, params string[])

Create a new FindParamAttribute.

Declaration

cs-api-definition
public FindAttribute(string key, params string[] findClauses)

Parameters

key

string

The friendly name of this element. You will use that name as the key in the dictionary of found elements using Find.Elements[] collection

findClauses

string[]

The find expression clauses

Properties

DefinesFrame

Gets whether the FindParam defines a Frame.

Declaration

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

Property Value

bool

DefinesTestRegion

Gets whether the FindParam defines a TestRegion

Declaration

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

Property Value

bool

FindClauses

The actualy FindParam object corresponding to this attribute.

Declaration

cs-api-definition
public string[] FindClauses { get; }

Property Value

string[]

FrameId

Gets or sets the frame id for this findparam.

Declaration

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

Property Value

string

FrameIndex

Gets or sets the frame index

Declaration

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

Property Value

int

FrameName

Gets or sets the frame name for this findparam.

Declaration

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

Property Value

string

FrameSrc

Gets or sets the frame src value

Declaration

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

Property Value

string

Key

The friendly name to identify this FindParam and the element it will identify when using Find.All().

Declaration

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

Property Value

string

ParentAppKey

Gets or sets the parent application key that defines the find expression for the Silverlight application that owns this element.

Declaration

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

Property Value

string

TargetType

Gets or sets the technology type of the target element of this expression

Declaration

cs-api-definition
public TechnologyType TargetType { get; set; }

Property Value

TechnologyType

TestRegionId

Gets or sets the TestRegion Id this FindParam belongs to.

Declaration

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

Property Value

string