Class BaseWaitConditions

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.function.Function<java.lang.String,​java.lang.String> messageCustomizer()
      Build the final message from default message.
      protected void until​(FluentWait wait, java.util.function.Predicate<FluentControl> present, java.lang.String message)
      Perform the wait.
      protected void until​(FluentWait wait, java.util.function.Predicate<FluentControl> present, java.util.function.Supplier<java.lang.String> messageSupplier)
      Perform the wait.
      protected <T extends Conditions<?>>
      void
      until​(FluentWait wait, T condition, T messageBuilder, java.util.function.Function<T,​java.lang.Boolean> conditionFunction)
      Perform the wait.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseWaitConditions

        public BaseWaitConditions()
    • Method Detail

      • messageCustomizer

        protected java.util.function.Function<java.lang.String,​java.lang.String> messageCustomizer()
        Build the final message from default message.
        Returns:
        final message
      • until

        protected void until​(FluentWait wait,
                             java.util.function.Predicate<FluentControl> present,
                             java.lang.String message)
        Perform the wait.
        Parameters:
        wait - fluent wait object.
        present - predicate to wait for.
        message - message to use.
      • until

        protected void until​(FluentWait wait,
                             java.util.function.Predicate<FluentControl> present,
                             java.util.function.Supplier<java.lang.String> messageSupplier)
        Perform the wait.
        Parameters:
        wait - fluent wait object.
        present - predicate to wait for.
        messageSupplier - default message to use.
      • until

        protected <T extends Conditions<?>> void until​(FluentWait wait,
                                                       T condition,
                                                       T messageBuilder,
                                                       java.util.function.Function<T,​java.lang.Boolean> conditionFunction)
        Perform the wait.
        Type Parameters:
        T - type of the condition.
        Parameters:
        wait - fluent wait object
        condition - condition object to wait for
        messageBuilder - message builder matching the condition object
        conditionFunction - condition fonction