/// <summary> /// Starts the search for the UI element by the automation ID. /// </summary> /// <param name="automationId">The automation ID to search for.</param> /// <param name="comparison">The comparison kind how the automation ID will be compared.</param> /// <returns>A combinable By to be able to append additional conditions.</returns> /// <exception cref="System.ArgumentException">automationId is null, empty or just whitespaces.</exception> public static CombinableBy AutomationId(string automationId, CompareKind comparison) { var combinableBy = new CombinableBy(); return(combinableBy.AutomationId(automationId, comparison)); }
/// <summary> /// Starts the search for the UI element by the automation ID. By default CompareKind.Exact will be used. /// </summary> /// <param name="automationId">The automation ID to search for.</param> /// <returns>A combinable By to be able to append additional conditions.</returns> /// <exception cref="System.ArgumentException">automationId is null, empty or just whitespaces.</exception> public static CombinableBy AutomationId(string automationId) { var combinableBy = new CombinableBy(); return(combinableBy.AutomationId(automationId)); }