public void goBack ( ) { String action = "Going back one page" ; String expected = "Previous page from browser history is loaded" ; try { driver . navigate ( ) . back ( ) ; } catch ( Exception e ) { reporter . fail ( action , expected , "Browser was unable to go back one page. " + e . getMessage ( ) ) ; log . warn ( e ) ; return ; } reporter . pass ( action , expected , expected ) ; }
Go back one page in the current test s browser history