@ Override public void confirmationMatches ( String expectedConfirmationPattern ) { String confirmation = checkConfirmationMatches ( expectedConfirmationPattern , 0 , 0 ) ; assertTrue ( "Confirmation Text Mismatch: confirmation text of '" + confirmation + DOES_NOT_MATCH_PATTERN + expectedConfirmationPattern + "'" , confirmation . matches ( expectedConfirmationPattern ) ) ; }
Asserts that a confirmation present on the page has content matching the expected text . This information will be logged and recorded with a screenshot for traceability and added debugging support .