ArtOfTest, Inc. - WebAii 1.1 Automation Infrastructure reference library
FindParam class
A class that defines how a search for an element should be conducted within a document.
Syntax
C#
Members
All MembersConstructorsMethodsPropertiesFieldsEvents



IconMemberDescription
FindParamNew()
Create a new FindParam
FindParamNew(FindType, String, String[]())
Create a new FindParam by explicitly specifying the FindType.
FindParamNew(Int32[]())
Create a new find parameter of Type=NodeIndexPath
FindParamNew(String, Int32)
Create a new find parameter of Type=TagIndex
FindParamNew(String, Int32, String[]())
Create a new find parameter of Type=TagIndex with additional attributes to use to find the element or verify it.
FindParamNew(String[]())
Create a new find parameter using name-value pairs of attributes.
Attributes
Gets/Sets the list of Attributes to use for identification.
ContentType
Gets/Sets the content type when the identification type is Content. (Default:TextContent)
ContentValue
Gets/Sets the content value to find when type is Content. This can be a string to validate against or a regular expression. The content must start with: 'l:' for exact match strings, 'p:' for partial strings or 'x:' for regular expression matches. If none are provided the string will be matched using an exact match 'l:'. All searches are case-insensitive.
Examples
To find tags with innerText content is: 'foo bar' Example 1: 'l:foo bar' Example 2: 'p:foo' Example 3: 'x:foo\s*bar'
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()
Gets the Type of the current instance.
(Inherited from Object.)
static memberLoadFromFile(String)
Load a FindParam from a file.
static memberLoadFromXml(String)
Load a FindParam from an xml persisted string.
MemberwiseClone()
Creates a shallow copy of the current Object.
(Inherited from Object.)
NodeIndexPath
Gets/Sets Hierarchal path from the reference element when Type=NodeIndexPath.
PartialAttributes
Gets/Sets the partial attribute values to use for identification.
PropertyChanged
Occurs when a property changes on this FindParam object.
Save(String)
Serialized and saves the current FindParam to a file. You can later load that file using FindParam.Load().
SearchAttributes
TagIndex
Gets/Sets tagName occurrence index when Type=TagIndex
TagName
Gets/Sets the tagName of the element this parameter identifies.
ToString()
String representation of the FindParam.
(Overrides Object.ToString().)
ToXml()
Serialize and return the current FindParam as a string. You can later use that string to create a FindParam using the .Load().
Type
Gets/Sets the identification type to use to identify this element. (Default:TagIndex)
XPath
Gets/Sets the XPath to use when Type=XPath.
Inheritance Hierarchy
Object
FindParam

Assembly: ArtOfTest.WebAii (Module: ArtOfTest.WebAii)