C# Class Automation.UI.Tree.Query

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

Private Properties

Свойство Type Description
Query System

Méthodes publiques

Méthode 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

Méthode Description
Query ( AutomationElement root ) : System

New query that will search relative to the specified element.

Method Details

AllResults() public méthode

Gets all the results of executing this query.
public AllResults ( ) : UIComponents
Résultat UIComponents

FirstResult() public méthode

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

FirstResult() public méthode

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.
Résultat UIComponent

ToString() public méthode

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