Method: RWebUnit::Assert#assert_option_present
- Defined in:
- lib/rwebunit/assert.rb
#assert_option_present(select_name, option_label) ⇒ Object Also known as: assert_select_label_present
137 138 139 140 141 142 143 144 145 |
# File 'lib/rwebunit/assert.rb', line 137 def assert_option_present(select_name, option_label) @web_browser.select_lists.each { |select| next unless select.name == select_name select.o.each do |option| # items in the list return if option.text == option_label end } assert(false, "can't find the combob box: #{select_name} with value: #{option_label}") end |