Method: Capybara::Session#select

Defined in:
lib/capybara/session.rb

#select(value, options = {}) ⇒ Object


86
87
88
89
# File 'lib/capybara/session.rb', line 86

def select(value, options={})
  msg = "cannot select option, no select box with id, name, or label '#{options[:from]}' found"
  locate(:xpath, XPath.select(options[:from]), msg).select(value)
end