ElementFinder Class

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Provides infrastructure for accessing elements defined by FindParamAttribute on test methods and classes. Replaces the Find.Elements dictionary which has been obsoleted.
Inheritance Hierarchy

SystemObject
  ArtOfTest.WebAii.CoreElementFinder

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

public class ElementFinder

The ElementFinder type exposes the following members.

Constructors

  NameDescription
Public methodElementFinder
Create a new ElementFinder against a specific class instance
Top
Properties

  NameDescription
Public propertyReturnElementProxyWhenNotFound
Gets or sets a flag that indicates to the ElementFinder to return an ElementProxy object when the element is not found instead of null or an exception. The Element proxy object is an Element object that is only initialized with the FindParam object it needs to use. You can then call Element.Wait.ForExists() on it to wait for it to be found. You can check whether an Element is a proxy element by checking the Element.IsProxy
Public propertyWaitOnElements
Gets or sets whether to wait on elements to exist in the DOM tree if they can't be found initially. If set, will use the WaitOnElementsTimeout as the default timeout for the wait. Default is false Note: This property overrides ReturnElementProxyWhenNotFound if set.
Public propertyWaitOnElementsTimeout
Gets or sets the timeout to use when waiting on elements. WaitOnElements=true.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet
Get an element defined by a FindAttribute.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetHtml(String)
Get an HTML element
Public methodGetHtmlT(String)
Get an HTML element.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetXaml(String)
Get a Xaml element.
Public methodGetXamlT(String)
Get a Xaml element
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge
Merge a set of FindAttribute declarations defined on a type. The parameters will be available using Get, GetHtml or GetXaml
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference