Method: RWebUnit::Assert#assert_text_not_present
- Defined in:
- lib/rwebunit/assert.rb
#assert_text_not_present(text) ⇒ Object
Assert text not present in page source (html)
assert_text_not_present("<h1>iTest2</h1>")
38 39 40 |
# File 'lib/rwebunit/assert.rb', line 38 def assert_text_not_present(text) assert(!(@web_browser.page_source.include? text), 'expected text: ' + text + ' found') end |