code: public String confirmation() {
          if (!is.confirmationPresent()) {
              return null;
          }
          try {
              Alert alert = driver.switchTo().alert();
              return alert.getText();
          } catch (Exception e) {
              log.warn(e);
              return null;
          }
      }
docs: Retrieves the content of a confirmation present on the page. If the
  confirmation doesn't exist, a null value will be returned.
  
  @return String - the content of the confirmation