@Target(value=FIELD) @Repeatable(value=FindByList.class) @Retention(value=RUNTIME) public @interface FindBy
Major annotation assigned to page controls. It contains multiple attributes which help identifying object on the page as well as defines the way to process each specific control element.
This annotation can be assigned to the same Control object multiple times. Major difference is related to the platform each specific version of the locator is applied for.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
locator
String which is normally used to identify the way the element can be found on the page.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
excludeFromSearch
Defines whether current element is supposed to be checked while verifying if current
page class represents the page which is currently available on the screen.
|
java.lang.String |
format
Additional attribute which is responsible for various format transformations.
|
java.lang.String |
itemLocator
The part of sub-element identifier.
|
Platform |
platform
The field responsible for platform definition.
|
ScrollTo |
scrollDirection
Defines the direction of search for
scrollTo() text value. |
java.lang.String |
scrollTo
The text to scroll to in case current element isn't found on existing screen.
|
public abstract java.lang.String locator
public abstract Platform platform
public abstract java.lang.String itemLocator
TableView
public abstract java.lang.String scrollTo
public abstract ScrollTo scrollDirection
scrollTo()
text value.
Used in combination with scrollTo()
and defines the sequence
to scroll (top-bottom, bottom-top, top-only, bottom-only).scrollTo()
text value.