code: public void alertPresent(double seconds) {
          try {
              double timeTook = popup(seconds);
              checkAlertPresent(seconds, timeTook);
          } catch (TimeoutException e) {
              checkAlertPresent(seconds, seconds);
          }
      }
docs: Asserts that an alert is present on the page. This information will be
  logged and recorded, with a screenshot for traceability and added
  debugging support.
  
  @param seconds the number of seconds to wait