Method: RWebUnit::Assert#assert_option_not_present
- Defined in:
- lib/rwebunit/assert.rb
#assert_option_not_present(select_name, option_label) ⇒ Object Also known as: assert_select_label_not_present
116 117 118 119 120 121 122 123 |
# File 'lib/rwebunit/assert.rb', line 116 def assert_option_not_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 assert(!(option.text == option_label), "unexpected select option: #{option_label} for #{select_name} found") end } end |