@Retention(value=RUNTIME) @Target(value=FIELD) @Repeatable(value=Relations.class) public @interface Relation
This annotation modifies the element search in a page object (see PageObject).
The modification means that the desired element is the descendant or the ancestor
of an anchor element. (This can be specified with the type().)
The anchor element can be specified with the by() and using()
properties.
It is possible to add more than one Relation annotations to a field in a page object. In this case, all modifiers will be applied on the field during the search.
About ibello search engine see hu.ibello.search.
Find,
PageObject| Modifier and Type | Required Element and Description |
|---|---|
String |
using
Search pattern of the anchor element.
|
| Modifier and Type | Optional Element and Description |
|---|---|
By |
by
Search algorithm of the anchor element.
|
RelationType |
type
Type of the relation between the desired and the anchor element.
|
public abstract RelationType type
RelationType.DESCENDANT_OFRelationTypepublic abstract By by
By.CSS_SELECTOR.ByCreated by Kornél Simon, 2022