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

net.thucydides.core.webdriver.ConfiguredTimeouts Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
package net.thucydides.core.webdriver;

import net.serenitybdd.core.SystemTimeouts;
import net.serenitybdd.core.pages.DefaultTimeouts;
import net.thucydides.model.ThucydidesSystemProperty;
import net.thucydides.model.environment.SystemEnvironmentVariables;
import net.thucydides.model.util.EnvironmentVariables;

import java.time.Duration;

public class ConfiguredTimeouts {
    public static Duration implicitWait() {
        EnvironmentVariables environmentVariables = SystemEnvironmentVariables.currentEnvironmentVariables();
        long configuredWaitForTimeoutInMilliseconds = new SystemTimeouts(environmentVariables).getImplicitTimeout();
        return Duration.ofMillis(configuredWaitForTimeoutInMilliseconds);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy