private void retryLoad() { conditions.verify( new ExpectedCondition<Object>() { @Nullable @Override public Object apply(WebDriver driver) { driver.navigate().refresh(); return isLoadedCondition(); } }, Timeouts.MEDIUM); }
private boolean isLoadedCondition() { return conditions.isConditionMet(ignored -> childPageWindow.isLoaded()); }