Class Find
Inheritance
Inherited Members
Namespace: ArtOfTest.WebAii.Core
Assembly: ArtOfTest.WebAii.dll
Syntax
public class Find
Properties
AssociatedBrowser
FindReferenceType
IgnoreFindAllControlMismatch
Declaration
public bool IgnoreFindAllControlMismatch { get; set; }
Property Value
System.
|
LastFindParam
LastSearchLog
Declaration
public string LastSearchLog { get; }
Property Value
System.
|
SearchRegion
SearchRootElement
ThrowIfNullOrEmpty
Declaration
public bool ThrowIfNullOrEmpty { get; set; }
Property Value
System.
|
Methods
AllByAttributes(String[])
Declaration
public ReadOnlyCollection<Element> AllByAttributes(params string[] nameValuePairs)
Parameters
System.
|
Returns
System.
|
AllByAttributes<TControl>(String[])
Declaration
public ReadOnlyCollection<TControl> AllByAttributes<TControl>(params string[] nameValuePairs)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllByContent(String)
Declaration
public ReadOnlyCollection<Element> AllByContent(string textContent)
Parameters
System.
|
Returns
System.
|
AllByContent(String, FindContentType)
Declaration
public ReadOnlyCollection<Element> AllByContent(string content, FindContentType contentType)
Parameters
System.
|
Find
|
Returns
System.
|
AllByContent<TControl>(String)
Declaration
public ReadOnlyCollection<TControl> AllByContent<TControl>(string textContent)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllByContent<TControl>(String, FindContentType)
Declaration
public ReadOnlyCollection<TControl> AllByContent<TControl>(string content, FindContentType contentType)
where TControl : Control, new()
Parameters
System.
|
Find
|
Returns
System.
|
Type Parameters
TControl
|
AllByCssSelector(String)
Declaration
public ReadOnlyCollection<Element> AllByCssSelector(string selector)
Parameters
System.
|
Returns
System.
|
AllByCssSelector<TControl>(String)
Declaration
public ReadOnlyCollection<TControl> AllByCssSelector<TControl>(string selector)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllByCustom(Predicate<Element>)
Declaration
public ReadOnlyCollection<Element> AllByCustom(Predicate<Element> predicate)
Parameters
System.
|
Returns
System.
|
AllByCustom<TControl>(Predicate<TControl>)
Declaration
public ReadOnlyCollection<TControl> AllByCustom<TControl>(Predicate<TControl> predicate)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllByExpression(HtmlFindExpression)
Declaration
public ReadOnlyCollection<Element> AllByExpression(HtmlFindExpression expression)
Parameters
Html
|
Returns
System.
|
AllByExpression(String[])
Declaration
public ReadOnlyCollection<Element> AllByExpression(params string[] expression)
Parameters
System.
|
Returns
System.
|
AllByExpression<TControl>(HtmlFindExpression)
Declaration
public ReadOnlyCollection<TControl> AllByExpression<TControl>(HtmlFindExpression expression)
where TControl : Control, new()
Parameters
Html
|
Returns
System.
|
Type Parameters
TControl
|
AllByExpression<TControl>(String[])
Declaration
public ReadOnlyCollection<TControl> AllByExpression<TControl>(params string[] expression)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllByImage(Image, Double, Boolean, Point, Int32, Single, Int32)
Declaration
public ReadOnlyCollection<Element> AllByImage(Image image, double score, bool autoScroll = true, Point probeOffset = null, int timeout = 2147483647, float imageScale = 1F, int searchDelay = 100)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Returns
System.
|
AllByTagName(String)
Declaration
public ReadOnlyCollection<Element> AllByTagName(string tagName)
Parameters
System.
|
Returns
System.
|
AllByTagName<TControl>(String)
Declaration
public ReadOnlyCollection<TControl> AllByTagName<TControl>(string tagName)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllByXPath(String)
Declaration
public ReadOnlyCollection<Element> AllByXPath(string xpath)
Parameters
System.
|
Returns
System.
|
AllByXPath<TControl>(String)
Declaration
public ReadOnlyCollection<TControl> AllByXPath<TControl>(string xpath)
where TControl : Control, new()
Parameters
System.
|
Returns
System.
|
Type Parameters
TControl
|
AllControls<TControl>()
Declaration
public IEnumerable<TControl> AllControls<TControl>()
where TControl : Control, new()
Returns
System.
|
Type Parameters
TControl
|
AllElements()
Declaration
public IEnumerable<Element> AllElements()
Returns
System.
|
BuildBestFitFindExpression(Element)
Declaration
public static HtmlFindExpression BuildBestFitFindExpression(Element element)
Parameters
Element
element
|
Returns
ByAttributes(String[])
Declaration
public Element ByAttributes(params string[] nameValuePairs)
Parameters
System.
|
Returns
ByAttributes<TControl>(String[])
Declaration
public TControl ByAttributes<TControl>(params string[] nameValuePairs)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByContent(String)
Declaration
public Element ByContent(string content)
Parameters
System.
|
Returns
ByContent(String, FindContentType)
Declaration
public Element ByContent(string content, FindContentType contentType)
Parameters
System.
|
Find
|
Returns
ByContent(String, FindContentType, String[])
Declaration
public Element ByContent(string content, FindContentType contentType, params string[] nameValuePairs)
Parameters
System.
|
Find
|
System.
|
Returns
ByContent<TControl>(String)
Declaration
public TControl ByContent<TControl>(string content)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByContent<TControl>(String, FindContentType)
Declaration
public TControl ByContent<TControl>(string content, FindContentType contentType)
where TControl : Control, new()
Parameters
System.
|
Find
|
Returns
TControl
|
Type Parameters
TControl
|
ByContent<TControl>(String, FindContentType, String[])
Declaration
public TControl ByContent<TControl>(string content, FindContentType contentType, params string[] nameValuePairs)
where TControl : Control, new()
Parameters
System.
|
Find
|
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByCssSelector(String)
Declaration
public Element ByCssSelector(string selector)
Parameters
System.
|
Returns
ByCssSelector<TControl>(String)
Declaration
public TControl ByCssSelector<TControl>(string selector)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByCustom(Predicate<Element>)
Declaration
public Element ByCustom(Predicate<Element> predicate)
Parameters
System.
|
Returns
ByCustom<TControl>(Predicate<TControl>)
Declaration
public TControl ByCustom<TControl>(Predicate<TControl> predicate)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByExpression(HtmlFindExpression)
Declaration
public Element ByExpression(HtmlFindExpression expression)
Parameters
Html
|
Returns
ByExpression(HtmlFindExpression, Boolean)
Declaration
public Element ByExpression(HtmlFindExpression expression, bool includeRoot)
Parameters
Html
|
System.
|
Returns
ByExpression(String[])
Declaration
public Element ByExpression(params string[] expression)
Parameters
System.
|
Returns
ByExpression<TControl>(HtmlFindExpression)
Declaration
public TControl ByExpression<TControl>(HtmlFindExpression expression)
where TControl : Control, new()
Parameters
Html
|
Returns
TControl
|
Type Parameters
TControl
|
ByExpression<TControl>(String[])
Declaration
public TControl ByExpression<TControl>(params string[] expression)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ById(String)
ById<TControl>(String)
Declaration
public TControl ById<TControl>(string id)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByImage(Image, Double, Int32, Boolean, Point, Int32, Single, Int32)
Declaration
public Element ByImage(Image image, double score, int index = 0, bool autoScroll = true, Point probeOffset = null, int timeout = 2147483647, float imageScale = 1F, int searchDelay = 100)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Returns
ByName(String)
ByName<TControl>(String)
Declaration
public TControl ByName<TControl>(string name)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByNodeIndexPath(String)
Declaration
public Element ByNodeIndexPath(string nodeIndexPath)
Parameters
System.
|
Returns
ByNodeIndexPath<TControl>(String)
Declaration
public TControl ByNodeIndexPath<TControl>(string nodeIndexPath)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByTagIndex(String, Int32)
Declaration
public Element ByTagIndex(string tagName, int occurrenceIndex)
Parameters
System.
|
System.
|
Returns
ByTagIndex<TControl>(String, Int32)
Declaration
public TControl ByTagIndex<TControl>(string tagName, int occurrenceIndex)
where TControl : Control, new()
Parameters
System.
|
System.
|
Returns
TControl
|
Type Parameters
TControl
|
ByXPath(String)
ByXPath<TControl>(String)
Declaration
public TControl ByXPath<TControl>(string xpath)
where TControl : Control, new()
Parameters
System.
|
Returns
TControl
|
Type Parameters
TControl
|
FromCollection(FindExpressionCollection<HtmlFindExpression>)
Declaration
public IDictionary<string, Element> FromCollection(FindExpressionCollection<HtmlFindExpression> collection)
Parameters
Find
|
Returns
System.
|
FromExpressionsFile(String)
Declaration
public IDictionary<string, Element> FromExpressionsFile(string fileName)
Parameters
System.
|
Returns
System.
|
FromExpressionsXml(String)
Declaration
public IDictionary<string, Element> FromExpressionsXml(string xml)
Parameters
System.
|
Returns
System.
|
ImageMatch(Image, Double, Int32, Int32, Single, Int32)
Declaration
public Rectangle ImageMatch(Image image, double score, int index = 0, int timeout = 2147483647, float imageScale = 1F, int searchDelay = 100)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
System.
|
Returns
System.
|
ImageMatches(Image, Double, Int32, Single, Int32)
Declaration
public ReadOnlyCollection<Rectangle> ImageMatches(Image image, double score, int timeout = 2147483647, float imageScale = 1F, int searchDelay = 100)
Parameters
System.
|
System.
|
System.
|
System.
|
System.
|
Returns
System.
|
Events
ReturnedNullOrEmpty
Declaration
public event EventHandler<ReturnedNullOrEmptyEventArgs> ReturnedNullOrEmpty
Event Type
System.
|