com.qa.automation.android.find.Sleeper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-automation-library Show documentation
Show all versions of android-automation-library Show documentation
Support android ui automaton such as identify Toast and PopupWindow for appium
The newest version!
package com.qa.automation.android.find;
/**
* The type Sleeper.
*/
public class Sleeper {
private final int PAUSE = 500;
private final int MINIPAUSE = 300;
/**
* Sleeps the current thread for a default pause length.
*/
public void sleep() {
sleep(PAUSE);
}
/**
* Sleeps the current thread for a default mini pause length.
*/
public void sleepMini() {
sleep(MINIPAUSE);
}
/**
* Sleeps the current thread for time
milliseconds.
*
* @param time the length of the sleep in milliseconds
*/
public void sleep(int time) {
try {
Thread.sleep(time);
} catch (InterruptedException ignored) {
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy