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.
Show file Open project: vijayakumarsuraj/UIAutomation

Protected Properties

Property Type Description
DefaultTimeout System.TimeSpan

Public Methods

Method 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.

Protected Methods

Method 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 method

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.
return object

GetAllResults() public method

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

GetAllResults() public abstract method

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.
return IEnumerable

GetFirstResult() public method

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

GetFirstResult() public abstract method

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.
return System.Windows.Automation.AutomationElement

Property Details

DefaultTimeout protected property

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