C# Class Automation.UI.Tree.Query

Represents a query that is used to walk the UI automation tree.
Mostra file Open project: vijayakumarsuraj/UIAutomation Class Usage Examples

Private Properties

Property Type Description
Query System

Public Methods

Method Description
AllResults ( ) : UIComponents

Gets all the results of executing this query.

FirstResult ( ) : UIComponent

Get the first result of executing this query. If no elements were found, throws an exception.

FirstResult ( System.TimeSpan timeout ) : UIComponent

Get the first result of executing this query. If no elements were found, throws an exception.

ToString ( ) : string

Gets a string that represents this query's condition and scope.

Private Methods

Method Description
Query ( AutomationElement root ) : System

New query that will search relative to the specified element.

Method Details

AllResults() public method

Gets all the results of executing this query.
public AllResults ( ) : UIComponents
return UIComponents

FirstResult() public method

Get the first result of executing this query. If no elements were found, throws an exception.
public FirstResult ( ) : UIComponent
return UIComponent

FirstResult() public method

Get the first result of executing this query. If no elements were found, throws an exception.
public FirstResult ( System.TimeSpan timeout ) : UIComponent
timeout System.TimeSpan The maximum amount of time to wait for the requested element to become available.
return UIComponent

ToString() public method

Gets a string that represents this query's condition and scope.
public ToString ( ) : string
return string