Class ValueMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<org.openqa.selenium.WebElement>, org.hamcrest.SelfDescribing

    public class ValueMatcher
    extends org.hamcrest.TypeSafeMatcher<org.openqa.selenium.WebElement>
    Matches the value of an element, for example an input field.
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueMatcher​(java.lang.Object value)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description description)  
      boolean matchesSafely​(org.openqa.selenium.WebElement item)  
      static org.hamcrest.Matcher<org.openqa.selenium.WebElement> value​(java.lang.Object value)  
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        describeMismatch, describeMismatchSafely, matches
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValueMatcher

        public ValueMatcher​(java.lang.Object value)
    • Method Detail

      • matchesSafely

        public boolean matchesSafely​(org.openqa.selenium.WebElement item)
        Specified by:
        matchesSafely in class org.hamcrest.TypeSafeMatcher<org.openqa.selenium.WebElement>
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • value

        public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> value​(java.lang.Object value)