Class BaseWaitConditions

    • Constructor Detail

      • BaseWaitConditions

        public BaseWaitConditions()
    • Method Detail

      • messageCustomizer

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

        protected void until​(FluentWait wait,
                             Predicate<FluentControl> present,
                             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,
                             Predicate<FluentControl> present,
                             Supplier<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,
                                                       Function<T,​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