Interface FluentWaitFunctional<F>

Type Parameters:
F - the argument to pass to function called
All Superinterfaces:
org.openqa.selenium.support.ui.Wait<F>
All Known Implementing Classes:
FluentWait, FluentWaitElement, FluentWaitElementList

public interface FluentWaitFunctional<F> extends org.openqa.selenium.support.ui.Wait<F>
Functional API of fluent wait.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    until (Function<? super F, T> function)
    Wait until the function returns a non-null and non-false object.
    void
    until (Supplier<Boolean> booleanSupplier)
    Wait until the supplier returns true.
    void
    Wait until the predicate returns true.
  • Method Details

    • untilPredicate

      void untilPredicate (Predicate<FluentControl> predicate)
      Wait until the predicate returns true.
      Parameters:
      predicate - predicate condition to wait for
    • until

      void until (Supplier<Boolean> booleanSupplier)
      Wait until the supplier returns true.
      Parameters:
      booleanSupplier - supplier condition to wait for.
    • until

      <T> T until (Function<? super F,T> function)
      Wait until the function returns a non-null and non-false object.
      Specified by:
      until in interface org.openqa.selenium.support.ui.Wait<F>
      Type Parameters:
      T - type of returned object
      Parameters:
      function - function returning a non-null and non-false object when condition is verified.
      Returns:
      object returned by function