com.clarolab.selenium.pages.actions.GeneralUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pages-framework Show documentation
Show all versions of pages-framework Show documentation
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);
}
}