Package org.fluentlenium.core.page
Class ClassAnnotations
- java.lang.Object
-
- org.openqa.selenium.support.pagefactory.AbstractAnnotations
-
- org.fluentlenium.core.page.ClassAnnotations
-
public class ClassAnnotations extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
Inspired byAnnotations
, but use a Class instead of a Field to retrieve the annotations.
-
-
Constructor Summary
Constructors Constructor Description ClassAnnotations(Class<?> containerClass)
Creates a new class annotations.
-
-
-
Constructor Detail
-
ClassAnnotations
public ClassAnnotations(Class<?> containerClass)
Creates a new class annotations.- Parameters:
containerClass
- container class on witch to read annotations
-
-
Method Detail
-
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
-
-