test/ui_test_helper.rb
# explicit wait until requested page loads
explicit wait until requested page loads
explicit wait until requested page loads
def wait_until_page_loads(path)
    @wait.until { @driver.current_url.chomp('/') == path } 
    @wait.until { @driver.execute_script('return PAGE_RENDERED;') == true }
    $verbose ? puts("#{path} successfully loaded") : nil
  end
def wait_until_page_loads ( path ) @wait . until { @driver . current_url . chomp ( '/' ) == path } @wait . until { @driver . execute_script ( 'return PAGE_RENDERED;' ) == true } $verbose ? puts ( "#{path} successfully loaded" ) : nil end
explicit wait until requested page loads
explicit wait until requested page loads
# remove traing slash
path
<not_specific>