code: @Override
      public void alertMatches(String expectedAlertPattern) {
          String alert = checkAlertMatches(expectedAlertPattern, 0, 0);
          assertTrue("Alert Text Mismatch: alert text of '" + alert + DOES_NOT_MATCH_PATTERN + expectedAlertPattern + "'", alert.matches(expectedAlertPattern));
      }
docs: Asserts that an alert present on the page has content matching the
  expected patten. This information will be logged and recorded, with a
  screenshot for traceability and added debugging support.
  
  @param expectedAlertPattern the expected text of the alert