Class Wait<Subject>
java.lang.Object
org.openqa.selenium.support.ui.FluentWait<Subject>
org.jenkinsci.test.acceptance.junit.Wait<Subject>
- Type Parameters:
Subject
- Argument type passed to callback.
- All Implemented Interfaces:
org.openqa.selenium.support.ui.Wait<Subject>
public class Wait<Subject>
extends org.openqa.selenium.support.ui.FluentWait<Subject>
ATH specific wait object.
- Author:
- ogondza
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.openqa.selenium.support.ui.FluentWait
clock, DEFAULT_SLEEP_TIMEOUT, ignoredExceptions, interval, messageSupplier, sleeper, timeout
-
Constructor Summary
ConstructorDescriptionCreate wait with configurable timer.Wait
(Subject input, ElasticTime time) Create wait with configurable timer. -
Method Summary
Modifier and TypeMethodDescriptionpollingEvery
(Duration timeout) protected RuntimeException
timeoutException
(String message, Throwable lastException) <Return> Return
void
<Return> Return
until
(Wait.Predicate<Return> isTrue) withMessage
(String message) withMessage
(String pattern, Object... args) withTimeout
(Duration timeout) Methods inherited from class org.openqa.selenium.support.ui.FluentWait
ignoreAll, until, withMessage
-
Constructor Details
-
Wait
Create wait with configurable timer.This is useful for timeout waiting for tasks to complete that might be dependent on test environment.
-
Wait
Create wait with configurable timer.This is useful for timeout waiting wall-clock time to pass.
- See Also:
-
-
Method Details
-
withMessage
-
until
-
until
-
until
-
timeoutException
- Overrides:
timeoutException
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
withTimeout
- Overrides:
withTimeout
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
withMessage
- Overrides:
withMessage
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
pollingEvery
- Overrides:
pollingEvery
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
ignoring
- Overrides:
ignoring
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
ignoring
public Wait<Subject> ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType) - Overrides:
ignoring
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-