public abstract class ThucydidesFluentWait<T> extends Object implements org.openqa.selenium.support.ui.Wait<T>
| Modifier and Type | Field and Description |
|---|---|
static org.openqa.selenium.support.ui.Duration |
FIVE_HUNDRED_MILLIS |
protected org.openqa.selenium.support.ui.Duration |
interval |
protected org.openqa.selenium.support.ui.Duration |
timeout |
| Constructor and Description |
|---|
ThucydidesFluentWait(T input,
org.openqa.selenium.support.ui.Clock clock,
org.openqa.selenium.support.ui.Sleeper sleeper) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doWait() |
protected org.openqa.selenium.support.ui.Clock |
getClock() |
protected T |
getInput() |
protected org.openqa.selenium.support.ui.Sleeper |
getSleeper() |
ThucydidesFluentWait<T> |
ignoring(Class<? extends RuntimeException>... types) |
PollingSchedule |
pollingEvery(int amount) |
ThucydidesFluentWait<T> |
pollingEvery(long duration,
TimeUnit unit) |
protected RuntimeException |
timeoutException(String message,
RuntimeException lastException) |
<V> V |
until(com.google.common.base.Function<? super T,V> isTrue) |
ThucydidesFluentWait<T> |
withTimeout(long duration,
TimeUnit unit) |
TimeoutSchedule |
withTimeoutOf(int amount) |
public static org.openqa.selenium.support.ui.Duration FIVE_HUNDRED_MILLIS
protected org.openqa.selenium.support.ui.Duration timeout
protected org.openqa.selenium.support.ui.Duration interval
public ThucydidesFluentWait(T input, org.openqa.selenium.support.ui.Clock clock, org.openqa.selenium.support.ui.Sleeper sleeper)
protected org.openqa.selenium.support.ui.Clock getClock()
protected T getInput()
protected org.openqa.selenium.support.ui.Sleeper getSleeper()
public <V> V until(com.google.common.base.Function<? super T,V> isTrue)
until in interface org.openqa.selenium.support.ui.Wait<T>public abstract void doWait()
throws InterruptedException
InterruptedExceptionpublic ThucydidesFluentWait<T> ignoring(Class<? extends RuntimeException>... types)
public ThucydidesFluentWait<T> withTimeout(long duration, TimeUnit unit)
public ThucydidesFluentWait<T> pollingEvery(long duration, TimeUnit unit)
protected RuntimeException timeoutException(String message, RuntimeException lastException)
public TimeoutSchedule withTimeoutOf(int amount)
public PollingSchedule pollingEvery(int amount)
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.