public void deleteAllCookies ( ) { String action = "Deleting all cookies" ; String expected = "All cookies are removed" ; try { driver . manage ( ) . deleteAllCookies ( ) ; } catch ( Exception e ) { reporter . fail ( action , expected , "Unable to remove all cookies. " + e . getMessage ( ) ) ; log . warn ( e ) ; return ; } reporter . pass ( action , expected , expected ) ; }
Delete all stored cookies for this particular test