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:
    until(Function)
    • Method Detail

      • 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