public void goToURL ( String url ) { String action = "Loading " + url ; String expected = "Loaded " + url ; double start = System . currentTimeMillis ( ) ; try { driver . get ( url ) ; } catch ( Exception e ) { log . warn ( e ) ; reporter . fail ( action , expected , "Fail to Load " + url + ". " + e . getMessage ( ) ) ; return ; } double timeTook = System . currentTimeMillis ( ) - start ; timeTook = timeTook / 1000 ; reporter . pass ( action , expected , "Loaded " + url + " in " + timeTook + SECONDS ) ; acceptCertificate ( ) ; }
Navigates to a new url