Class WaitConditionProxy

java.lang.Object
io.fluentlenium.core.conditions.wait.WaitConditionProxy

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

    • each

      public static FluentListConditions each (FluentWait wait, String context, Supplier<? extends 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, String context, Supplier<? extends 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, String context, 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, String context, 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 (Class<C> conditionClass, FluentWait wait, String context, 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.