All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.thucydides.core.scheduling.FluentWaitWithRefresh Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy