ClassFindAttribute
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:
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class FindAttribute : Attribute, _Attribute
Inheritance: objectAttributeFindAttribute
Implements:
Inherited Members
Constructors
FindAttribute()
Create a new FindExpression attribute
Declaration
public FindAttribute()
FindAttribute(string, params string[])
Create a new FindParamAttribute.
Declaration
public FindAttribute(string key, params string[] findClauses)
Parameters
key
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.
DefinesTestRegion
Gets whether the FindParam defines a TestRegion
FindClauses
The actualy FindParam object corresponding to this attribute.
FrameId
Gets or sets the frame id for this findparam.
FrameIndex
Gets or sets the frame index
FrameName
Gets or sets the frame name for this findparam.
FrameSrc
Gets or sets the frame src value
Key
The friendly name to identify this FindParam and the element it will identify when using Find.All().
ParentAppKey
Gets or sets the parent application key that defines the find expression for the Silverlight application that owns this element.
TargetType
Gets or sets the technology type of the target element of this expression
Declaration
public TechnologyType TargetType { get; set; }
Property Value
TestRegionId
Gets or sets the TestRegion Id this FindParam belongs to.