Annotation Type Wait


  • @Inherited
    @Target({FIELD,TYPE})
    @Retention(RUNTIME)
    public @interface Wait
    Annotation to enable the Wait Hook.
    See Also:
    WaitHook, WaitHookOptions
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends java.lang.Throwable>[] ignoreAll
      Throwables that will be ignored while waiting for a condition.
      long pollingInterval
      Time interval to wait between each condition check.
      java.util.concurrent.TimeUnit pollingTimeUnit
      Time unit used for polling interval.
      long timeout
      Maximum amount of time to wait before throwing a TimeoutException.
      java.util.concurrent.TimeUnit timeUnit
      Time unit used for timeout value.
      boolean withNoDefaultsException
      Enable this option to disable default exceptions from FluentWait.
    • Element Detail

      • timeout

        long timeout
        Maximum amount of time to wait before throwing a TimeoutException.
        Returns:
        timeout value
        Default:
        5000L
      • timeUnit

        java.util.concurrent.TimeUnit timeUnit
        Time unit used for timeout value.
        Returns:
        time unit
        Default:
        java.util.concurrent.TimeUnit.MILLISECONDS
      • pollingInterval

        long pollingInterval
        Time interval to wait between each condition check.
        Returns:
        polling interval value
        Default:
        500L
      • pollingTimeUnit

        java.util.concurrent.TimeUnit pollingTimeUnit
        Time unit used for polling interval.
        Returns:
        time unit
        Default:
        java.util.concurrent.TimeUnit.MILLISECONDS
      • withNoDefaultsException

        boolean withNoDefaultsException
        Enable this option to disable default exceptions from FluentWait.
        Returns:
        boolean
        Default:
        false
      • ignoreAll

        java.lang.Class<? extends java.lang.Throwable>[] ignoreAll
        Throwables that will be ignored while waiting for a condition.
        Returns:
        array of ignored throwable
        Default:
        {}