org.openqa.selenium.browserlaunchers
Class Sleeper

java.lang.Object
  extended by org.openqa.selenium.browserlaunchers.Sleeper

public class Sleeper
extends Object

Primitives for sleeping

Author:
dfabulich

Constructor Summary
Sleeper()
           
 
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
 

Constructor Detail

Sleeper

public Sleeper()
Method Detail

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 © 2012. All Rights Reserved.