code: public static void waitUntilTextPresent(final String searchString) {
          logger.entering(searchString);
          Preconditions.checkArgument(StringUtils.isNotEmpty(searchString), "Search string cannot be null (or) empty.");
          ExpectedCondition<Boolean> conditionToCheck = new ExpectedCondition<Boolean>() {
              @Override
              public Boolean apply(WebDriver input) {
                  return getTextFromBody().contains(searchString);
              }
          };
          waitForCondition(conditionToCheck);
          logger.exiting();
      }
docs: Waits until text appears anywhere within the current page's &lt;body&gt; tag.
  
  @param searchString
  text will be waited for