Class PredicateCollectionCondition

  • All Implemented Interfaces:
    java.util.function.Predicate<java.util.List<org.openqa.selenium.WebElement>>
    Direct Known Subclasses:
    AllMatch, AnyMatch, NoneMatch

    @ParametersAreNonnullByDefault
    public abstract class PredicateCollectionCondition
    extends CollectionCondition
    • Field Detail

      • matcher

        protected final java.lang.String matcher
      • description

        protected final java.lang.String description
      • predicate

        protected final java.util.function.Predicate<org.openqa.selenium.WebElement> predicate
    • Constructor Detail

      • PredicateCollectionCondition

        protected PredicateCollectionCondition​(java.lang.String matcher,
                                               java.lang.String description,
                                               java.util.function.Predicate<org.openqa.selenium.WebElement> predicate)
    • Method Detail

      • fail

        public void fail​(WebElementsCollection collection,
                         @Nullable
                         java.util.List<org.openqa.selenium.WebElement> elements,
                         @Nullable
                         java.lang.Exception lastError,
                         long timeoutMs)
        Specified by:
        fail in class CollectionCondition
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object