Note: This API is now obsolete.
A class that defines how a search for an element should be conducted within a document.
Inheritance Hierarchy
ArtOfTest.WebAii.ObjectModelFindParam
Namespace: ArtOfTest.WebAii.ObjectModel
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
[SerializableAttribute] [ObsoleteAttribute("FindParam will be removed in next release. Please use HtmlFindExpression or XamlFindExpressions instead. FindParam.ToFindExpression() can help you convert your current FindParams to FindExpressions")] public class FindParam : INotifyPropertyChanged, IFindParam
The FindParam type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FindParam |
Create a new FindParam
| |
FindParam(Int32) |
Create a new find parameter of Type=NodeIndexPath
| |
FindParam(String) |
Create a new find parameter using name-value pairs of attributes.
| |
FindParam(HtmlFindExpression) |
Create a new find param of type.
| |
FindParam(String, Int32) |
Create a new find parameter of Type=TagIndex
| |
FindParam(String, Int32, String) |
Create a new find parameter of Type=TagIndex with additional attributes to use to find the
element or verify it.
| |
FindParam(FindType, String, String) |
Create a new FindParam by explicitly specifying the FindType.
|
Properties
Name | Description | |
---|---|---|
Attributes |
Gets/Sets the list of Attributes to use for identification.
| |
Constraints |
Gets or sets a constraint for this FindParam
| |
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 | |
ExcludedAttributes |
Gets/Sets the list of attribute to exclude for identification.
| |
Expression |
The HtmlFindExpression used if Type=Expression.
| |
NodeIndexPath |
Gets/Sets Hierarchal path from the reference element when Type=NodeIndexPath.
| |
PartialAttributes |
Gets/Sets the partial attribute values to use for identification.
| |
SearchAttributes | List of (partial & exact) attributes to use for identification. | |
TagIndex |
Gets/Sets tagName occurrence index when Type=TagIndex
| |
TagName |
Gets/Sets the tagName of the element this parameter identifies.
| |
Type |
Gets/Sets the identification type to use to identify this element. (Default:TagIndex)
| |
XPath |
Gets/Sets the XPath to use when Type=XPath.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadFromFile |
Load a FindParam from a file.
| |
LoadFromXml |
Load a FindParam from an xml persisted string.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NewExpr |
Create a FindParam object from an expression.
| |
Save |
Serializes and saves the current FindParam to a file.
You can later load that file using FindParam.Load().
| |
SetAttributes |
Used to initialize a list of parameter value pairs on a FindParam.
| |
SetContent |
Sets the content type and returns the updated FindParam.
| |
SetTagName |
Sets the tag name and returns the updated FindParam.
| |
ToString |
String representation of the FindParam.
(Overrides ObjectToString.) | |
ToXml |
Serialize and return the current FindParam as a string.
You can later use that string to create a FindParam using the .Load().
|
Events
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property changes on this FindParam object.
|
Extension Methods
Name | Description | |
---|---|---|
ToExpression |
Convert a FindParam legacy object to a HtmlFindExpression
(Defined by FindParamExtension.) |
See Also