Class CustomMatch


  • @ParametersAreNonnullByDefault
    public class CustomMatch
    extends Condition
    • Field Detail

      • predicate

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

      • CustomMatch

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

      • apply

        public boolean apply​(Driver driver,
                             org.openqa.selenium.WebElement element)
        Description copied from class: Condition
        Check if given element matches this condition.
        Specified by:
        apply in class Condition
        element - given WebElement
        Returns:
        true if element matches condition
      • toString

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