net.thucydides.core.scheduling.FluentWaitWithRefresh Maven / Gradle / Ivy
package net.thucydides.core.scheduling;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Clock;
import org.openqa.selenium.support.ui.Sleeper;
public class FluentWaitWithRefresh extends ThucydidesFluentWait {
public FluentWaitWithRefresh(T input, Clock clock, Sleeper sleeper) {
super(input, clock, sleeper);
}
@Override
public void doWait() throws InterruptedException {
getSleeper().sleep(interval);
((WebDriver) getInput()).navigate().refresh();
}
}