C# 클래스 Automation.UI.Tree.SearchEngines.TreeWalkerSearchEngine

Implementation of the search engine interface that uses a tree walker to find matching nodes. The tree walker will search the UI automation tree in a breadth first order.
상속: SearchEngine
파일 보기 프로젝트 열기: vijayakumarsuraj/UIAutomation

공개 메소드들

메소드 설명
GetAllResults ( Query query, System.TimeSpan timeout ) : IEnumerable

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

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

Gets the first result for the specified query.

비공개 메소드들

메소드 설명
ExecuteWithChildren ( AutomationElement root, WithElementCallback callback ) : object

Calls the specified callback for each child of the specified node.

ExecuteWithDescendants ( AutomationElement root, WithElementCallback callback ) : object

Calls the specified callback for each descendant of the specified node.

메소드 상세

GetAllResults() 공개 메소드

Gets all the automation elements found using the condition specified in the specified query.
public 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.
리턴 IEnumerable

GetFirstResult() 공개 메소드

Gets the first result for the specified query.
public 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.
리턴 System.Windows.Automation.AutomationElement