Class SizeLessThan

  • All Implemented Interfaces:
    java.util.function.Predicate<java.util.List<org.openqa.selenium.WebElement>>

    @ParametersAreNonnullByDefault
    public class SizeLessThan
    extends CollectionCondition
    • Field Detail

      • expectedSize

        protected final int expectedSize
    • Constructor Detail

      • SizeLessThan

        public SizeLessThan​(int expectedSize)
    • Method Detail

      • test

        public boolean test​(java.util.List<org.openqa.selenium.WebElement> elements)
      • 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