code: public void textPresent(double seconds, String expectedText) {
          double end = System.currentTimeMillis() + (seconds * 1000);
          while (!app.is().textPresent(expectedText) && System.currentTimeMillis() < end) ;
          double timeTook = Math.min((seconds * 1000) - (end - System.currentTimeMillis()), seconds * 1000) / 1000;
          checkTextPresent(expectedText, seconds, timeTook);
      }
docs: Waits up to the provided wait time for provided text(s) are on the current page. This information
  will be logged and recorded, with a screenshot for traceability and added
  debugging support.
  
  @param expectedText the expected text to be present
  @param seconds      the number of seconds to wait