retry(() -> {
try {
int KK=0;
do something;;;
if( KK==0) {
KK+=1;
logger.error("--------force-----");
throw new StaleElementReferenceException("force");
}
return true;
}catch(TimeoutException|StaleElementReferenceException se){
logger.error("got ception: {}",se.getMessage());
return false;
} }
}, WAIT_DSM_PAGE_READY__RETRY_POLICY, "Attempting to retry navigateToEventsFrame ");
留言列表