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