Method: RWebUnit::Assert#assert_button_present

Defined in:
lib/rwebunit/assert.rb

#assert_button_present(button_id) ⇒ Object



221
222
223
224
225
226
# File 'lib/rwebunit/assert.rb', line 221

def assert_button_present(button_id)
  @web_browser.buttons.each { |button|
    return if button_id == button.id
  }
  assert(false, "can't find the button with id: #{button_id}")
end