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

io.magentys.cinnamon.webdriver.Timeout Maven / Gradle / Ivy

package io.magentys.cinnamon.webdriver;

import org.openqa.selenium.support.ui.Duration;

import java.util.concurrent.TimeUnit;

@FunctionalInterface
public interface Timeout {

    Duration getDuration();

    default long getSeconds() {
        return getDuration().in(TimeUnit.SECONDS);
    }

    default long getMillis() {
        return getDuration().in(TimeUnit.MILLISECONDS);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy