public class TextMatcher extends org.hamcrest.TypeSafeMatcher<WebElement>
Matcher for matching text content within WebElements.| 限定符和类型 | 方法和说明 |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(WebElement item) |
static org.hamcrest.Matcher<WebElement> |
text(org.hamcrest.Matcher<String> textMatcher) |
public boolean matchesSafely(WebElement item)
matchesSafely 在类中 org.hamcrest.TypeSafeMatcher<WebElement>public void describeTo(org.hamcrest.Description description)
public static org.hamcrest.Matcher<WebElement> text(org.hamcrest.Matcher<String> textMatcher)