ClassFindParamAttribute
FindParam attribute used to be set on a test method or test class.
Definition
Namespace:ArtOfTest.WebAii.TestAttributes
Assembly:ArtOfTest.WebAii.dll
Syntax:
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class FindParamAttribute : Attribute, _Attribute
Inheritance: objectAttributeFindParamAttribute
Implements:
Inherited Members
Constructors
FindParamAttribute(string, FindType, string)
Create a new FindParamAttribute.
Declaration
public FindParamAttribute(string key, FindType type, string value)
Parameters
key
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
The type of the FindParam.
value
The value of the FindParam./>
FindParamAttribute(string, FindType, string, params string[])
Create a new FindParamAttribute.
Declaration
public FindParamAttribute(string key, FindType type, string value, params string[] attributes)
Parameters
key
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
The type of the FindParam.
value
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.
DefinesTestRegion
Gets whether the FindParam defines a TestRegion
FindParam
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().
TestRegionId
Gets or sets the TestRegion Id this FindParam belongs to.