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

com.clarolab.selenium.pages.actions.GeneralUtils Maven / Gradle / Ivy

Go to download

Framework for automated testing using Selenium. Provides easy configuration of WebDrivers with BrowserFactory. Provides a Page abstraction.

The newest version!
package com.clarolab.selenium.pages.actions;

public class GeneralUtils {

    public static void waitMillis(int millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            // Don't care.
        }
    }

    public static void waitSeconds(int seconds) {
        try {
            Thread.sleep(Long.valueOf(seconds) * Long.valueOf(1000));
        } catch (InterruptedException e) {
            // Don't care.
        }
    }

    public static void waitOneSecond() {
        waitSeconds(1);
    }

    public static void waitFiveSeconds() {
        waitSeconds(5);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy