code: public static void waitUntilPageTitleContains(final String pageTitle) {
          logger.entering(pageTitle);
          Preconditions
                  .checkArgument(StringUtils.isNotEmpty(pageTitle), "Expected Page title cannot be null (or) empty.");
          ExpectedCondition<Boolean> condition = ExpectedConditions.titleContains(pageTitle);
          waitForCondition(condition);
          logger.exiting();
      }
docs: Waits until the current page's title contains a case-sensitive substring of the given title.
  
  @param pageTitle
  title of page expected to appear