VisualFind Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
VisualFind is used to search the Visual Tree of the Silverlight Application. It provides a rich set of API to do rich search.
Inheritance Hierarchy

SystemObject
  ArtOfTest.CommonTreeCrawlerFrameworkElement, XamlFindExpression, XamlFindClause
    ArtOfTest.WebAii.SilverlightVisualFind

Namespace:  ArtOfTest.WebAii.Silverlight
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public sealed class VisualFind : TreeCrawler<FrameworkElement, XamlFindExpression, XamlFindClause>

The VisualFind type exposes the following members.

Properties

  NameDescription
Public propertyLastUsedExpression
The last FindExpression used by this Crawler.
(Inherited from TreeCrawlerT, V, R.)
Public propertyOwnerApp
Gets the owner app of this Find object.
Public propertySearchRoot
Gets the Search Root for this FrameworkElement
(Overrides TreeCrawlerT, V, RSearchRoot.)
Public propertyStrategy
Gets or sets the find strategy to use when searching for elements in the VisualTree
Public propertyWaitOnElementsTimeout
Gets or sets the time out to use when Strategy=AlwaysWaitForElementsVisible
Top
Methods

  NameDescription
Public methodAllByAutomationId(String)
Finds all controls with a given automation id
Public methodAllByAutomationId(String, String)
Public methodAllByAutomationIdT(String)
Public methodAllByCustom(PredicateFrameworkElement)
Public methodAllByCustom(T, PredicateT, Boolean)
Find all matches that match custom search logic
(Inherited from TreeCrawlerT, V, R.)
Public methodAllByExpression(XamlFindExpression)
Finds all the elements in the tree that match the find expression.
(Overrides TreeCrawlerT, V, RAllByExpression(V).)
Public methodAllByExpression(T, V)
Finds all the elements in the tree that match the find expression.
(Inherited from TreeCrawlerT, V, R.)
Public methodAllByName(String)
Public methodAllByName(String, String)
Public methodAllByNameT(String)
Public methodAllByTextContent
Public methodAllByType(String)
Public methodAllByTypeT
Public methodByAutomationId(String)
Search the Visual Tree for an element with a certain automation ID
Public methodByAutomationId(String, Boolean)
Public methodByAutomationIdT(String)
Search the Visual Tree for an element with a certain automation ID and return it as a strongly-typed control
Public methodByBaseTypeT
Finds the first element of type or null if no element is matching the criteria. If interface type searches for all types inheriting the specified one. Else, behaves like standard ByType method.
Public methodByCustom(PredicateFrameworkElement)
Find using custom logic.
Public methodByCustom(T, PredicateT, Boolean)
Find using custom logic.
(Inherited from TreeCrawlerT, V, R.)
Public methodByExpression(V)
Finds the first element in the tree that matches the find expression.
(Inherited from TreeCrawlerT, V, R.)
Public methodByExpression(T, V)
Finds the first element in the tree that matches the find expression.
(Inherited from TreeCrawlerT, V, R.)
Public methodByExpression(XamlFindExpression, Boolean)
Finds the first element in the tree that matches the find expression. It doesn't wait an element to be populated, returns immediately.
(Overrides TreeCrawlerT, V, RByExpression(V, Boolean).)
Public methodByExpression(T, V, Boolean)
Finds the first element in the tree that matches the find expression.
(Inherited from TreeCrawlerT, V, R.)
Public methodByExpressionReturnOrThrow(XamlFindExpression)
Finds the first element in the tree that matches the find expression. It respects the find strategy so can wait an element to be populated according to the timeout.
Public methodByExpressionReturnOrThrow(XamlFindExpression, Boolean)
Finds the first element in the tree that matches the find expression. It respects the find strategy so can wait an element to be populated according to the timeout.
Public methodByName(String)
Search the Visual Tree with an element with a certain name.
Public methodByNameT(String)
Return the element with specified name as the desired type.
Public methodByTextContent
Return the element that contain the specified text.
Public methodByType(String)
Find the first control of type defined
Public methodByTypeT
Find the first control of certain type.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFindUsingExpressionPath
Find an element using expression paths starting at startNode.
(Inherited from TreeCrawlerT, V, R.)
Public methodFindUsingHierarchicalClause (Overrides TreeCrawlerT, V, RFindUsingHierarchicalClause(T, R).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRefreshRoot
Refresh the visual tree this VisualFind object searches
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference