Class ExactTexts

  • 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>>
    Direct Known Subclasses:
    Texts, TextsInAnyOrder

    public class ExactTexts
    extends CollectionCondition
    • Field Detail

      • expectedTexts

        protected final java.util.List<java.lang.String> expectedTexts
    • Constructor Detail

      • ExactTexts

        public ExactTexts​(java.lang.String... expectedTexts)
      • ExactTexts

        public ExactTexts​(java.util.List<java.lang.String> expectedTexts)
    • 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