public class TextMatcher
extends org.hamcrest.TypeSafeMatcher<org.openqa.selenium.WebElement>
Matcher
for matching text content within WebElement
s.Modifier and Type | Field and Description |
---|---|
private org.hamcrest.Matcher<java.lang.String> |
matcher |
Constructor and Description |
---|
TextMatcher(org.hamcrest.Matcher<java.lang.String> matcher) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(org.openqa.selenium.WebElement item) |
static org.hamcrest.Matcher<org.openqa.selenium.WebElement> |
text(org.hamcrest.Matcher<java.lang.String> textMatcher) |
describeMismatch, describeMismatchSafely, matches
public boolean matchesSafely(org.openqa.selenium.WebElement item)
matchesSafely
in class org.hamcrest.TypeSafeMatcher<org.openqa.selenium.WebElement>
public void describeTo(org.hamcrest.Description description)
public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> text(org.hamcrest.Matcher<java.lang.String> textMatcher)