Method: Webrat::SeleniumSession#select
- Defined in:
- lib/webrat/selenium/selenium_session.rb
#select(option_text, options = {}) ⇒ Object
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/webrat/selenium/selenium_session.rb', line 108 def select(option_text, = {}) id_or_name_or_label = [:from] if id_or_name_or_label select_locator = "webrat=#{id_or_name_or_label}" else select_locator = "webratselectwithoption=#{option_text}" end selenium.wait_for_element select_locator, :timeout_in_seconds => 5 selenium.select(select_locator, option_text) end |