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
  • Constructor Details

    • 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:
  • Method Details

    • withMessage

      public Wait<Subject> withMessage(String pattern, Object... args)
    • 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 class org.openqa.selenium.support.ui.FluentWait<Subject>
    • withTimeout

      public Wait<Subject> withTimeout(Duration timeout)
      Overrides:
      withTimeout in class org.openqa.selenium.support.ui.FluentWait<Subject>
    • withMessage

      public Wait<Subject> withMessage(String message)
      Overrides:
      withMessage in class org.openqa.selenium.support.ui.FluentWait<Subject>
    • pollingEvery

      public Wait<Subject> pollingEvery(Duration timeout)
      Overrides:
      pollingEvery in class org.openqa.selenium.support.ui.FluentWait<Subject>
    • ignoring

      public Wait<Subject> ignoring(Class<? extends Throwable> exceptionType)
      Overrides:
      ignoring in class org.openqa.selenium.support.ui.FluentWait<Subject>
    • ignoring

      public Wait<Subject> ignoring(Class<? extends Throwable> firstType, Class<? extends Throwable> secondType)
      Overrides:
      ignoring in class org.openqa.selenium.support.ui.FluentWait<Subject>