Represents a query that is used to walk the UI automation tree.
Esempio n. 1
0
 /// <summary>
 ///     Gets the first automation element found using the conditions specified in the specified query.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <returns>The automation element (or null if no element was found).</returns>
 public AutomationElement GetFirstResult(Query query)
 {
     return GetFirstResult(query, DefaultTimeout);
 }
Esempio n. 2
0
 /// <summary>
 ///     Gets all the automation elements found using the condition specified in the specified query.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <returns>The collection of automation elements.</returns>
 public IEnumerable GetAllResults(Query query)
 {
     return GetAllResults(query, DefaultTimeout);
 }
Esempio n. 3
0
 /// <summary>
 ///     Gets the first automation element found using the conditions specified in the specified query.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <param name="timeout">The maximum amount of time to wait for the required element to become available.</param>
 /// <returns>The automation element (or null if no element was found).</returns>
 public abstract AutomationElement GetFirstResult(Query query, TimeSpan timeout);
Esempio n. 4
0
 /// <summary>
 ///     Gets all the automation elements found using the condition specified in the specified query.
 /// </summary>
 /// <param name="query">The query.</param>
 /// <param name="timeout">The maximum amount of time to wait for at least one element to become available.</param>
 /// <returns>The collection of automation elements.</returns>
 public abstract IEnumerable GetAllResults(Query query, TimeSpan timeout);