public class HasText extends SelectorSamplerMatcher<String>
| Constructor and Description |
|---|
HasText(org.hamcrest.Matcher<String> matcher)
Constructor for HasText.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static org.hamcrest.Matcher<Selector> |
hasText(org.hamcrest.Matcher<String> matcher)
Matches if element defined by selector has a text matched by
underlying matcher.
|
describeMismatchSafely, describeSelector, getSamplerClass, getSamplerParams, map, setSamplerClass, setSamplerParamsgetSelector, getSelectorName, matchesSafely, setSelectorgetInternalMatcher, setInternalMatcherpublic HasText(org.hamcrest.Matcher<String> matcher)
Constructor for HasText.
matcher - to match elements textpublic void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingdescribeTo in class SelectorSamplerMatcher<String>Copyright © 2017–2022 wcm.io QA. All rights reserved.