Method: RWebUnit::Assert#assert_button_present_with_text

Defined in:
lib/rwebunit/assert.rb

#assert_button_present_with_text(button_text) ⇒ Object



228
229
230
231
232
233
# File 'lib/rwebunit/assert.rb', line 228

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