Method: Watir::Select#select_value

Defined in:
lib/watir-webdriver/elements/select.rb

#select_value(str_or_rx) ⇒ String

Selects the option(s) whose value attribute matches the given string.

Parameters:

  • str_or_rx (String, Regexp)

Returns:

  • (String)

    The option selected. If multiple options match, returns the first match

Raises:

See Also:

  • +select+


70
71
72
# File 'lib/watir-webdriver/elements/select.rb', line 70

def select_value(str_or_rx)
  select_by :value, str_or_rx
end