C# Class Automation.UI.Tree.SearchEngine

Base class for the query engines used. These are responsible for taking the conditions specified in a query and finding an automation element using them.
Afficher le fichier Open project: vijayakumarsuraj/UIAutomation

Protected Properties

Свойство Type Description
DefaultTimeout System.TimeSpan

Méthodes publiques

Méthode Description
GetAllResults ( Query query ) : IEnumerable

Gets all the automation elements found using the condition specified in the specified query.

GetAllResults ( Query query, System.TimeSpan timeout ) : IEnumerable

Gets all the automation elements found using the condition specified in the specified query.

GetFirstResult ( Query query ) : AutomationElement

Gets the first automation element found using the conditions specified in the specified query.

GetFirstResult ( Query query, System.TimeSpan timeout ) : AutomationElement

Gets the first automation element found using the conditions specified in the specified query.

Méthodes protégées

Méthode Description
ExecuteGetResult ( GetResultCallback callback, System.TimeSpan timeout ) : object

Invokes the specified callback repeatedly until either the specified timeout expires or an automation element is returned.

Method Details

ExecuteGetResult() protected méthode

Invokes the specified callback repeatedly until either the specified timeout expires or an automation element is returned.
protected ExecuteGetResult ( GetResultCallback callback, System.TimeSpan timeout ) : object
callback GetResultCallback The get results callback method.
timeout System.TimeSpan The maximum amount of time to wait for the callback to return an automation element.
Résultat object

GetAllResults() public méthode

Gets all the automation elements found using the condition specified in the specified query.
public GetAllResults ( Query query ) : IEnumerable
query Query The query.
Résultat IEnumerable

GetAllResults() public abstract méthode

Gets all the automation elements found using the condition specified in the specified query.
public abstract GetAllResults ( Query query, System.TimeSpan timeout ) : IEnumerable
query Query The query.
timeout System.TimeSpan The maximum amount of time to wait for at least one element to become available.
Résultat IEnumerable

GetFirstResult() public méthode

Gets the first automation element found using the conditions specified in the specified query.
public GetFirstResult ( Query query ) : AutomationElement
query Query The query.
Résultat System.Windows.Automation.AutomationElement

GetFirstResult() public abstract méthode

Gets the first automation element found using the conditions specified in the specified query.
public abstract GetFirstResult ( Query query, System.TimeSpan timeout ) : AutomationElement
query Query The query.
timeout System.TimeSpan The maximum amount of time to wait for the required element to become available.
Résultat System.Windows.Automation.AutomationElement

Property Details

DefaultTimeout protected_oe property

The default amount of time to wait for an element to become available.
protected TimeSpan,System DefaultTimeout
Résultat System.TimeSpan