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