code: public static <T> T assertExpectedCondition(ExpectedCondition<T> condition, WebDriver driver) {
  		try {
  			return waitUntil(condition, driver);
  		} catch(TimeoutException e) {
  			throw new AssertionError("Explicit wait timed out. The condition '" + condition + "' was not met" , e);
  		}
  	}
docs: Explicitly wait until the given expected condition is met.
  Throw {@link AssertionError} if the wait times out.
  
  @param condition
  @param driver
  @return whatever #waitUntil returns
  @throws AssertionError if the condition is not met