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

net.serenitybdd.core.pages.DefaultTimeouts Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
package net.serenitybdd.core.pages;

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

import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.SECONDS;

/**
 * Created by john on 6/03/15.
 */
public class DefaultTimeouts {
    private static final Duration ZERO_SECONDS = new Duration(0, SECONDS);
    private static final Duration FIVE_SECONDS = new Duration(5, SECONDS);
    private static final Duration ONE_SECOND = new Duration(1, SECONDS);
    private static final Duration TWO_SECONDS = new Duration(2, SECONDS);
    private static final Duration HALF_A_SECOND = new Duration(2000, MILLISECONDS);

    public static final Duration DEFAULT_WAIT_FOR_TIMEOUT = FIVE_SECONDS;
    public static final Duration DEFAULT_IMPLICIT_WAIT_TIMEOUT = TWO_SECONDS;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy