Method: Seleniumrc::SeleniumDriver#wait_for_page_to_load

Defined in:
lib/seleniumrc/selenium_driver.rb

#wait_for_page_to_load(timeout = default_timeout) ⇒ Object



158
159
160
161
162
163
# File 'lib/seleniumrc/selenium_driver.rb', line 158

def wait_for_page_to_load(timeout=default_timeout)
  super
  if get_title.include?("Exception caught")
    flunk "We got a new page, but it was an application exception page.\n\n" + get_html_source
  end
end