/// <summary> /// Selects an item in a select box by value using the supplied regular expression. /// Raises NoValueFoundException if the specified value is not found. /// </summary> /// <param name="regex">The regex.</param> public virtual void SelectByValue(Regex regex) { Logger.LogAction("Selecting text using regular expresson '{0}' in {1} '{2}', {3}", regex, GetType().Name, IdOrName, Description); SelectByTextOrValue(Find.ByValue(regex)); }
/// <summary> /// Selects an item in a select box by value using the supplied regular expression. /// Raises NoValueFoundException if the specified value is not found. /// </summary> /// <param name="regex">The regex.</param> public void SelectByValue(Regex regex) { Logger.LogAction("Selecting text using regular expresson '" + regex.ToString() + "' in " + GetType().Name + " '" + Id + "'"); SelectByTextOrValue(Find.ByValue(regex)); }
/// <summary> /// Selects an item in a select box, by value. /// Raises NoValueFoundException if the specified value is not found. /// </summary> /// <param name="value">The value.</param> public virtual void SelectByValue(string value) { Logger.LogAction("Selecting item with value '{0}' in {1} '{2}', {3}", value, GetType().Name, IdOrName, Description); SelectByTextOrValue(Find.ByValue(new StringEqualsAndCaseInsensitiveComparer(value))); }
/// <summary> /// Selects an item in a select box, by value. /// Raises NoValueFoundException if the specified value is not found. /// </summary> /// <param name="value">The value.</param> public void SelectByValue(string value) { Logger.LogAction("Selecting item with value '" + value + "' in " + GetType().Name + " '" + Id + "'"); SelectByTextOrValue(Find.ByValue(new StringEqualsAndCaseInsensitiveComparer(value))); }