Class AtLeastOneElementConditions

    • Constructor Detail

      • AtLeastOneElementConditions

        public AtLeastOneElementConditions​(List<? extends FluentWebElement> elements)
        Creates a new condition.
        Parameters:
        elements - underlying elements
    • Method Detail

      • verify

        public boolean verify​(Predicate<FluentWebElement> predicate,
                              boolean defaultValue)
        Description copied from interface: FluentListConditions
        Check that the given predicate is verified.
        Parameters:
        predicate - predicate to check
        defaultValue - default value if input is not present
        Returns:
        true if the predicate is verified, false otherwise
      • buildAtLeastOnePredicate

        protected Predicate<FluentDriver> buildAtLeastOnePredicate​(Predicate<FluentWebElement> predicate,
                                                                   boolean defaultValue)
        Build predicate for this condition.
        Parameters:
        predicate - predicate
        defaultValue - default value if elements list is empty.
        Returns:
        predicate