The Find type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AllByAttributes | Overloaded. | |
| AllByContent | Overloaded. | |
| AllByCustom | Overloaded. | |
| AllByExpression | Overloaded. | |
| AllByParam | Overloaded. | |
| AllByTagName | Overloaded. | |
| AllByXPath | Overloaded. | |
| AllControls<(Of <(TControl>)>) |
Gets an IEnmerable for TControl to be used for LINQ queries.
This will return only elements that are convertable to TControl
| |
| AllElements |
Gets a IEnumerable for all elements to be used for LINQ queries
| |
| BuildBestFitFindExpression |
Generates a FindParam[] list to be used to find the specified element.
The function uses an algorithm optimized for most reliable search methods
and will revert back to using the tagname index as a last resort
| |
| BuildBestFitFindParam |
Generates a FindParam[] list to be used to find the specified element.
The function uses an algorithm optimized for most reliable search methods
and will revert back to using the tagname index as a last resort
| |
| ByAttributes | Overloaded. | |
| ByContent | Overloaded. | |
| ByCustom | Overloaded. | |
| ByExpression | Overloaded. | |
| ById | Overloaded. | |
| ByName | Overloaded. | |
| ByNodeIndexPath | Overloaded. | |
| ByParam | Overloaded. | |
| ByTagIndex | Overloaded. | |
| ByXPath | Overloaded. | |
| Equals | (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.) | |
| FromCollection |
Finds all elements with the FindParams in the passed in collection.
| |
| FromFile |
Finds all elements with FindParams defined in a file. Found elements can be accessed from Find.Elements
| |
| FromXml |
Finds all elements with FindParams defined in the serialized xml string.
Found elements can be accessed from Find.Elements
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| AssociatedBrowser |
Gets the browser object that is associated with this find object.
If this property is null, then the Find object is associated with a search region.
| |
| FindReferenceType |
Gets the reference type that this Find object is using. (i.e. browser root, testregion ... etc)
| |
| IgnoreFindAllControlMismatch |
Gets/Sets whether to ignore Find.Allxx<TControl>(...) elements
that don't match the TControl specified. (i.e. the TControl type validation fails for
that element). If false, the Find.Allxx method will throw an exception.
| |
| LastFindParam |
Gets the last FindParam used to search.
| |
| LastSearchLog |
Gets the search log for the last find attempt. This log can help diagnose when
find fails to locate an element.
| |
| SearchRegion |
Gets the search region for this Find object. When this is set to a specific region, all search is done locale
to that region. All indexes are calculated starting at zero from this region's element.
If this property is null, then the Find object will perform all searches from the document
root element.
| |
| SearchRootElement |
Gets/Sets the root element that all searches will be performed under.
This element depended on the reference type. [Browser/TestRegion/Element].
| |
| ThrowIfNullOrEmpty |
Gets/Sets whether to throw an exception if any of the find methods returns a null element or any of
the find all methods return empty list of elements.
|
Events
| Name | Description | |
|---|---|---|
| ReturnedNullOrEmpty |
Invoked when one of the find methods returns null or an empty list of elements.
|
