@Retention(value=RUNTIME) @Target(value=FIELD) @Repeatable(value=Positions.class) public @interface Position
This annotation modifies the element search in a page object (see PageObject).
The modification means that the desired element should have a specific relative position
from an anchor element. The position can be specified with the type() property.
The anchor element can be specified with the by() and using()
properties.
It is possible to add more than one Position 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.
|
PositionType |
type
Relative position of the desired element.
|
public abstract PositionType type
PositionType.ROW.PositionTypepublic abstract By by
By.CSS_SELECTOR.ByCreated by Kornél Simon, 2022