Annotation Interface Wait


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

    • timeout

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

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

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

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

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

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