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