class Selenium::WebDriver::Support::Select

def select_by_text(text)

def select_by_text(text)
  opts = find_by_text text
  return select_options(opts) unless opts.empty?
  raise Error::NoSuchElementError, "cannot locate element with text: #{text.inspect}"
end