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(Class<?> containerClass)
Creates a new class annotations.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertValidAnnotations()
Assert that defined annotations are valid.
|
org.openqa.selenium.By |
buildBy() |
protected Class<?> |
getContainerClass()
Get the underlying container class
|
boolean |
isLookupCached() |
public ClassAnnotations(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.AbstractAnnotationsIllegalArgumentException - when more than one annotation on a class providedprotected Class<?> getContainerClass()
protected void assertValidAnnotations()
Copyright © 2016 FluentLenium. All Rights Reserved.