org.openqa.selenium.browserlaunchers
Class Sleeper
java.lang.Object
org.openqa.selenium.browserlaunchers.Sleeper
public class Sleeper
- extends Object
Primitives for sleeping
Method Summary |
static void |
sleepTight(long timeout)
Sleeps without explicitly throwing an InterruptedException |
static void |
sleepTightInSeconds(long timeoutInSeconds)
Sleeps without explicitly throwing an InterruptedException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sleeper
public Sleeper()
sleepTightInSeconds
public static void sleepTightInSeconds(long timeoutInSeconds)
- Sleeps without explicitly throwing an InterruptedException
- Parameters:
timeoutInSeconds
- Sleep time in seconds.
- Throws:
RuntimeException
- wrapping an InterruptedException if one gets thrown
sleepTight
public static void sleepTight(long timeout)
- Sleeps without explicitly throwing an InterruptedException
- Parameters:
timeout
- the amout of time to sleep
- Throws:
RuntimeException
- wrapping an InterruptedException if one gets thrown
Copyright © 2013. All rights reserved.