org.openqa.selenium.support.ui
Interface Sleeper
public interface Sleeper
Abstraction around Thread.sleep(long)
to permit better testability.
Method Summary |
void |
sleep(Duration duration)
Sleeps for the specified duration of time. |
SYSTEM_SLEEPER
static final Sleeper SYSTEM_SLEEPER
sleep
void sleep(Duration duration)
throws java.lang.InterruptedException
- Sleeps for the specified duration of time.
- Parameters:
duration
- How long to sleep.
- Throws:
java.lang.InterruptedException
- If hte thread is interrupted while sleeping.
Copyright © 2011. All Rights Reserved.