Class ListSize

  • All Implemented Interfaces:
    com.google.common.base.Predicate<java.util.List<org.openqa.selenium.WebElement>>, java.util.function.Predicate<java.util.List<org.openqa.selenium.WebElement>>

    public class ListSize
    extends CollectionCondition
    • Field Detail

      • expectedSize

        protected final int expectedSize
    • Constructor Detail

      • ListSize

        public ListSize​(int expectedSize)
    • Method Detail

      • apply

        public boolean apply​(java.util.List<org.openqa.selenium.WebElement> elements)
      • fail

        public void fail​(WebElementsCollection collection,
                         java.util.List<org.openqa.selenium.WebElement> elements,
                         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