org.openqa.selenium.support.ui
Interface Sleeper


public interface Sleeper

Abstraction around Thread.sleep(long) to permit better testability.


Field Summary
static Sleeper SYSTEM_SLEEPER
           
 
Method Summary
 void sleep(Duration duration)
          Sleeps for the specified duration of time.
 

Field Detail

SYSTEM_SLEEPER

static final Sleeper SYSTEM_SLEEPER
Method Detail

sleep

void sleep(Duration duration)
           throws InterruptedException
Sleeps for the specified duration of time.

Parameters:
duration - How long to sleep.
Throws:
InterruptedException - If hte thread is interrupted while sleeping.


Copyright © 2011. All Rights Reserved.