Modifier and Type | Field and Description |
---|---|
protected Predicate<? super UiElement> |
predicate |
Constructor and Description |
---|
MatchFinder(Predicate<? super UiElement> predicate) |
Modifier and Type | Method and Description |
---|---|
UiElement |
find(UiElement context)
Returns the matching UiElement.
|
boolean |
matches(UiElement element)
Returns true if the
element matches this finder. |
java.lang.String |
toString() |
public java.lang.String toString()
Finder
It is recommended that this method return the description of the finder, for example, "{text=OK}".
public UiElement find(UiElement context)
Finder
Invisible UiElements are skipped.
public final boolean matches(UiElement element)
element
matches this finder. This can be used
to test the exact match of element
when this finder is used in
By.anyOf(MatchFinder...)
.element
- The element to validate against