Package net.thucydides.core.scheduling
Class ThucydidesFluentWait<T>
java.lang.Object
net.thucydides.core.scheduling.ThucydidesFluentWait<T>
- All Implemented Interfaces:
org.openqa.selenium.support.ui.Wait<T>
- Direct Known Subclasses:
FluentWaitWithRefresh,NormalFluentWait
public abstract class ThucydidesFluentWait<T>
extends Object
implements org.openqa.selenium.support.ui.Wait<T>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionThucydidesFluentWait(T input, Clock clock, org.openqa.selenium.support.ui.Sleeper sleeper) -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddoWait()protected ClockgetClock()protected TgetInput()protected org.openqa.selenium.support.ui.Sleeperignoring(Class<? extends RuntimeException>... types) pollingEvery(int amount) pollingEvery(long duration, TimeUnit unit) protected RuntimeExceptiontimeoutException(String message, RuntimeException lastException) <V> VwithMessage(String message) Sets the message to be displayed when time expires.withMessage(Supplier<String> messageSupplier) Sets the message to be evaluated and displayed when time expires.withTimeout(long duration, TimeUnit unit) withTimeout(Duration timeout) withTimeoutOf(int amount)
-
Field Details
-
timeout
-
interval
-
-
Constructor Details
-
ThucydidesFluentWait
-
-
Method Details
-
getClock
-
getInput
-
getSleeper
protected org.openqa.selenium.support.ui.Sleeper getSleeper() -
until
- Specified by:
untilin interfaceorg.openqa.selenium.support.ui.Wait<T>
-
doWait
- Throws:
InterruptedException
-
ignoring
-
withTimeout
-
withTimeout
-
withMessage
Sets the message to be displayed when time expires.- Parameters:
message- to be appended to default.- Returns:
- A self reference.
-
withMessage
Sets the message to be evaluated and displayed when time expires.- Parameters:
messageSupplier- to be evaluated on failure and appended to default.- Returns:
- A self reference.
-
pollingEvery
-
timeoutException
-
withTimeoutOf
-
pollingEvery
-