Method: RWebUnit::Assert#assert_text_present

Defined in:
lib/rwebunit/assert.rb

#assert_text_present(text) ⇒ Object

Assert text present in page source (html)

assert_text_present("<h1>iTest2</h1>")


32
33
34
# File 'lib/rwebunit/assert.rb', line 32

def assert_text_present(text)
  assert((@web_browser.page_source.include? text), 'expected text: ' + text + ' not found')
end