code: public void promptEquals(double seconds, String expectedPromptText) {
          try {
              double timeTook = popup(seconds);
              timeTook = popupEquals(seconds - timeTook, expectedPromptText);
              checkPromptEquals(expectedPromptText, seconds, timeTook);
          } catch (TimeoutException e) {
              checkPromptEquals(expectedPromptText, seconds, seconds);
          }
      }
docs: Waits up to the provided wait time for a prompt present on the page has content equal to the
  expected text. This information will be logged and recorded, with a
  screenshot for traceability and added debugging support.
  
  @param expectedPromptText the expected text of the prompt
  @param seconds            the number of seconds to wait