code: public static ExpectedCondition<Boolean> waitForLoad() {
          return new ExpectedCondition<Boolean>() {
              @Override
              public Boolean apply(WebDriver driver) {
                  return ((JavascriptExecutor) driver).executeScript("return document.readyState").equals("complete");
              }
          };
      }
docs: Expects that the target page is completely loaded.
  
  @return true or false