public static void waitUntilPageIsValidated(WebPage pageObject) {
        logger.entering(pageObject);
        Preconditions.checkArgument(pageObject != null, "Please provide a valid instance of WebPage.");
        final WebPage w = pageObject;
        ExpectedCondition<Boolean> conditionToCheck = new ExpectedCondition<Boolean>() {
            @Override
            public Boolean apply(WebDriver webDriver) {
                w.validatePage();
                return true;
            }
        };
        waitForConditionIgnoring(conditionToCheck, PageValidationException.class);
        logger.exiting();
    }
public static void waitUntilPageIsValidated ( WebPage pageObject ) { logger . entering ( pageObject ) ; Preconditions . checkArgument ( pageObject != null , "Please provide a valid instance of WebPage." ) ; final WebPage w = pageObject ; ExpectedCondition < Boolean > conditionToCheck = new ExpectedCondition < Boolean > ( ) { @ Override public Boolean apply ( WebDriver webDriver ) { w . validatePage ( ) ; return true ; } } ; waitForConditionIgnoring ( conditionToCheck , PageValidationException . class ) ; logger . exiting ( ) ; }
Waits until all <code>pageValidators</code> for a given object pass. The {@link WebPage} instance must express
something that validates the page or calling this will cause a wait timeout.

@param pageObject
a {@link WebPage} instance.