public class ClassAnnotations
extends org.openqa.selenium.support.pagefactory.AbstractAnnotations
Annotations, but use a Class instead of a Field
to retrieve the annotations.| Constructor and Description |
|---|
ClassAnnotations(java.lang.Class<?> containerClass)
Creates a new class annotations.
|
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.By |
buildBy() |
boolean |
isLookupCached() |
public ClassAnnotations(java.lang.Class<?> containerClass)
containerClass - container class on witch to read annotationspublic boolean isLookupCached()
isLookupCached in class org.openqa.selenium.support.pagefactory.AbstractAnnotationspublic org.openqa.selenium.By buildBy()
Looks for one of FindBy,
FindBys or
FindAll class annotations. In case
no annotation is provided for the field, returns null.
buildBy in class org.openqa.selenium.support.pagefactory.AbstractAnnotationsjava.lang.IllegalArgumentException - when more than one annotation on a class providedCopyright © 2018 FluentLenium. All Rights Reserved.