public class Commons extends Object
| Constructor and Description |
|---|
Commons() |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<Object> |
hasLabel(org.hamcrest.Matcher<String> stringMatcher)
Deprecated.
Use
hasText(Matcher) instead. |
static org.hamcrest.Matcher<Object> |
hasLabel(String label)
Deprecated.
Use
hasText(String) instead. |
static org.hamcrest.Matcher<Object> |
hasText(org.hamcrest.Matcher<String> stringMatcher)
Matches any Labeled Node that has a label that matches the given stringMatcher.
|
static org.hamcrest.Matcher<Object> |
hasText(String text)
Matches any Labeled Node that has the given label.
|
static Node |
nodeLabeledBy(Label label) |
static Node |
nodeLabeledBy(String labelQuery) |
@Deprecated public static org.hamcrest.Matcher<Object> hasLabel(String label)
hasText(String) instead.@Deprecated public static org.hamcrest.Matcher<Object> hasLabel(org.hamcrest.Matcher<String> stringMatcher)
hasText(Matcher) instead.public static org.hamcrest.Matcher<Object> hasText(String text)
text - public static org.hamcrest.Matcher<Object> hasText(org.hamcrest.Matcher<String> stringMatcher)
stringMatcher -