Class
FindParamAttribute

FindParam attribute used to be set on a test method or test class.

Definition

Namespace:ArtOfTest.WebAii.TestAttributes

Assembly:ArtOfTest.WebAii.dll

Syntax:

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

Inheritance: objectAttributeFindParamAttribute

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

FindParamAttribute(string, FindType, string)

Create a new FindParamAttribute.

Declaration

cs-api-definition
public FindParamAttribute(string key, FindType type, string value)

Parameters

key

string

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

type

FindType

The type of the FindParam.

value

string

The value of the FindParam./>

FindParamAttribute(string, FindType, string, params string[])

Create a new FindParamAttribute.

Declaration

cs-api-definition
public FindParamAttribute(string key, FindType type, string value, params string[] attributes)

Parameters

key

string

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

type

FindType

The type of the FindParam.

value

string

The value of the FindParam./>

attributes

string[]

The list of attributes to match.

Remarks

value can be set as (string.empty for FindType.AttributesOnly, "tagName:tagIndex" for FindType.TagIndex, "p/l/x:text or expression" for FindType.Content, "xpath" for FindType.XPath, "nodeindexpath" for FindType.NodeIndexPath

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

FindParam

The actualy FindParam object corresponding to this attribute.

Declaration

cs-api-definition
public FindParam FindParam { get; }

Property Value

FindParam

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

TestRegionId

Gets or sets the TestRegion Id this FindParam belongs to.

Declaration

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

Property Value

string