Method: RWebUnit::Assert#assert_option_value_not_present

Defined in:
lib/rwebunit/assert.rb

#assert_option_value_not_present(select_name, option_value) ⇒ Object Also known as: assert_select_value_not_present

select



106
107
108
109
110
111
112
113
# File 'lib/rwebunit/assert.rb', line 106

def assert_option_value_not_present(select_name, option_value)
  @web_browser.select_lists.each { |select|
    continue unless select.name == select_name
    select.o.each do |option| # items in the list
      assert(!(option.value == option_value), "unexpected select option: #{option_value} for #{select_name} found")
    end
  }
end