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
Nested Classes -
Field Summary
Fields inherited from class org.openqa.selenium.support.ui.FluentWait
clock, DEFAULT_SLEEP_TIMEOUT, ignoredExceptions, interval, messageSupplier, sleeper, timeout -
Constructor Summary
ConstructorsConstructorDescriptionCreate wait with configurable timer.Wait(Subject input, ElasticTime time) Create wait with configurable timer. -
Method Summary
Modifier and TypeMethodDescriptionpollingEvery(Duration timeout) protected RuntimeExceptiontimeoutException(String message, Throwable lastException) <Return> Returnvoid<Return> Returnuntil(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:
timeoutExceptionin classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
withTimeout
- Overrides:
withTimeoutin classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
withMessage
- Overrides:
withMessagein classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
pollingEvery
- Overrides:
pollingEveryin classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
ignoring
- Overrides:
ignoringin classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
ignoring
public Wait<Subject> ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType) - Overrides:
ignoringin classorg.openqa.selenium.support.ui.FluentWait<Subject>
-