private boolean isNotConfirmation ( String action , String expected ) { // wait for element to be present if ( ! is . confirmationPresent ( ) ) { waitFor . confirmationPresent ( ) ; } if ( ! is . confirmationPresent ( ) ) { reporter . fail ( action , expected , "Unable to click confirmation as it is not present" ) ; return true ; // indicates element not present } return false ; }
Determines if a confirmation is present or not and can be interacted with . If it s not present an indication that the confirmation can t be clicked on is written to the log file