interval = pollingStrategy.apply(info); getSleeper().sleep(interval); } catch (InterruptedException e) { Thread.currentThread().interrupt();
@Override public void doWait() throws InterruptedException { getSleeper().sleep(interval); } }
@Override public void doWait() throws InterruptedException { getSleeper().sleep(interval); } }
@Override public void doWait() throws InterruptedException { getSleeper().sleep(interval); } }
/** * Sleeps for defined timeout without checking for any * condition. */ public SebContextWait sleep() { try { sleeper.sleep(timeout); return this; } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new WebDriverException(e); } }
@Override public void waitUntilCompleted() { try { long end = MILLISECONDS.convert(duration.getTime(), duration.getUnit()); long time = (start + end) - System.currentTimeMillis(); if (time > 0) { Sleeper.SYSTEM_SLEEPER.sleep(Duration.ofMillis(time)); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new RuntimeException(e); } finally { start = -1; } }
@Override public void doWait() throws InterruptedException { getSleeper().sleep(interval); ((WebDriver) getInput()).navigate().refresh(); } }
sleeper.sleep(interval); } catch (InterruptedException e) { Thread.currentThread().interrupt();
@Override public void doWait() throws InterruptedException { getSleeper().sleep(interval); ((WebDriver) getInput()).navigate().refresh(); } }
@Override public void doWait() throws InterruptedException { getSleeper().sleep(interval); ((WebDriver) getInput()).navigate().refresh(); } }
sleeper.sleep(interval); } catch (InterruptedException e) { Thread.currentThread().interrupt();
interval = pollingStrategy.apply(info); getSleeper().sleep(interval); } catch (InterruptedException e) { Thread.currentThread().interrupt();