Method: RWebUnit::Assert#assert_option_value_present

Defined in:
lib/rwebunit/assert.rb

#assert_option_value_present(select_name, option_value) ⇒ Object Also known as: assert_select_value_present



126
127
128
129
130
131
132
133
134
# File 'lib/rwebunit/assert.rb', line 126

def assert_option_value_present(select_name, option_value)
  @web_browser.select_lists.each { |select|
    next unless select.name == select_name
    select.o.each do |option| # items in the list
      return if option.value == option_value
    end
  }
  assert(false, "can't find the combob box with value: #{option_value}")
end