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 Modifier and Type Class Description static class
Wait.Predicate<Return>
-
Constructor Summary
Constructors Constructor Description Wait(Subject input)
Create wait with configurable timer.Wait(Subject input, ElasticTime time)
Create wait with configurable timer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Wait<Subject>
ignoring(Class<? extends Throwable> exceptionType)
Wait<Subject>
ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType)
Wait<Subject>
pollingEvery(Duration timeout)
protected RuntimeException
timeoutException(String message, Throwable lastException)
<Return> Return
until(Callable<Return> isTrue)
void
until(org.hamcrest.Matcher<? super Subject> matcher)
<Return> Return
until(Wait.Predicate<Return> isTrue)
Wait<Subject>
withMessage(String message)
Wait<Subject>
withMessage(String pattern, Object... args)
Wait<Subject>
withTimeout(Duration timeout)
-
-
-
Constructor Detail
-
Wait
public Wait(Subject input, ElasticTime time)
Create wait with configurable timer.This is useful for timeout waiting for tasks to complete that might be dependent on test environment.
-
Wait
public Wait(Subject input)
Create wait with configurable timer.This is useful for timeout waiting wall-clock time to pass.
- See Also:
Wait(Object, ElasticTime)
-
-
Method Detail
-
until
public <Return> Return until(Callable<Return> isTrue)
-
until
public void until(org.hamcrest.Matcher<? super Subject> matcher)
-
until
public <Return> Return until(Wait.Predicate<Return> isTrue)
-
timeoutException
protected RuntimeException timeoutException(String message, Throwable lastException)
- Overrides:
timeoutException
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
withTimeout
public Wait<Subject> withTimeout(Duration timeout)
- Overrides:
withTimeout
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
withMessage
public Wait<Subject> withMessage(String message)
- Overrides:
withMessage
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
pollingEvery
public Wait<Subject> pollingEvery(Duration timeout)
- Overrides:
pollingEvery
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
ignoring
public Wait<Subject> ignoring(Class<? extends Throwable> exceptionType)
- Overrides:
ignoring
in classorg.openqa.selenium.support.ui.FluentWait<Subject>
-
-