/// <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); }
/// <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); }
/// <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);
/// <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);