Class WaitConditionProxy


  • public final class WaitConditionProxy
    extends java.lang.Object
    Provides proxy implementations of conditions that performs wait from those conditions.
    • Method Detail

      • each

        public static FluentListConditions each​(FluentWait wait,
                                                java.lang.String context,
                                                java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elementsSupplier)
        Build a wait proxy.
        Parameters:
        wait - Fluent wait
        context - Message context
        elementsSupplier - Supplier for elements to wait.
        Returns:
        a proxy generating message from annotations.
      • one

        public static FluentListConditions one​(FluentWait wait,
                                               java.lang.String context,
                                               java.util.function.Supplier<? extends java.util.List<? extends FluentWebElement>> elementsSupplier)
        Build a wait proxy.
        Parameters:
        wait - Fluent wait
        context - Message context
        elementsSupplier - Supplier for elements to wait.
        Returns:
        a proxy generating message from annotations.
      • list

        public static FluentListConditions list​(FluentWait wait,
                                                java.lang.String context,
                                                java.util.function.Supplier<? extends FluentListConditions> conditionsSupplier)
        Build a wait proxy.
        Parameters:
        wait - Fluent wait
        context - Message context
        conditionsSupplier - Supplier for elements to wait.
        Returns:
        a proxy generating message from annotations.
      • element

        public static FluentConditions element​(FluentWait wait,
                                               java.lang.String context,
                                               java.util.function.Supplier<? extends FluentWebElement> elementSupplier)
        Build a wait proxy.
        Parameters:
        wait - Fluent wait
        context - Message context
        elementSupplier - Supplier for element to wait.
        Returns:
        a proxy generating message from annotations.
      • custom

        public static <C extends Conditions<?>> C custom​(java.lang.Class<C> conditionClass,
                                                         FluentWait wait,
                                                         java.lang.String context,
                                                         java.util.function.Supplier<C> conditionsSupplier)
        Build a wait proxy.
        Type Parameters:
        C - condition type
        Parameters:
        conditionClass - condition class
        wait - Fluent wait
        context - Message context
        conditionsSupplier - Supplier for elements to wait.
        Returns:
        a proxy generating message from annotations.