Method: Webrat::SeleniumSession#select
- Defined in:
- lib/webrat/selenium/selenium_session.rb
#select(option_text, options = {}) ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/webrat/selenium/selenium_session.rb', line 103 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 |