Package io.fluentlenium.core.page
Class ClassAnnotations
java.lang.Object
org.openqa.selenium.support.pagefactory.AbstractAnnotations
io.fluentlenium.core.page.ClassAnnotations
public class ClassAnnotations
extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
Inspired by
Annotations
, but use a Class instead of a Field
to retrieve the annotations.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ClassAnnotations
Creates a new class annotations.- Parameters:
containerClass
- container class on witch to read annotations
-
-
Method Details
-
isLookupCached
public boolean isLookupCached()- Specified by:
isLookupCached
in classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
-
buildBy
public org.openqa.selenium.By buildBy()Looks for one of
FindBy
,FindBys
orFindAll
class annotations. In case no annotation is provided for the field, returns null.- Specified by:
buildBy
in classorg.openqa.selenium.support.pagefactory.AbstractAnnotations
- Throws:
IllegalArgumentException
- when more than one annotation on a class provided
-