public class Annotations extends AbstractAnnotations
| 构造器和说明 |
|---|
Annotations(Field field) |
public Annotations(Field field)
field - expected to be an element in a Page Objectpublic boolean isLookupCached()
isLookupCached 在类中 AbstractAnnotationspublic By buildBy()
By class used by webdriver to locate elements.
Looks for one of FindBy,
FindBys or
FindAll field annotations. In case
no annotaions provided for field, uses field name as 'id' or 'name'.buildBy 在类中 AbstractAnnotationsIllegalArgumentException - when more than one annotation on a field provided