code: public String waitTextToRender(int seconds, String excludeText) {
          String text = null;
          if (seconds == 0 && ((text = getText(true)) != null && text.length() > 0 && !text.equals(excludeText))) {
              return text;
          }
          for (int i = 0, count = 5 * seconds; i < count; i++) {
              text = getText(true);
              if (text != null && text.length() > 0 && !text.equals(excludeText)) {
                  return text;
              }
              if (i == 0) {
                  // log only fist time
                  LOGGER.debug("waitTextToRender");
              }
              Utils.sleep(200);
          }
          LOGGER.warn("No text was found for Element after " + seconds + " sec; " + this);
          return excludeText.equals(text) ? null : text;
      }
docs: Waits for the text to be loaded by looking at the content and not take in consideration the excludeText
  text or what ever text is given as parameter
  
  @param seconds     time in seconds
  @param excludeText exclude text
  @return string