public class FrostyAnnotations
extends java.lang.Object
| Constructor and Description |
|---|
FrostyAnnotations(java.lang.reflect.Field field) |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.By |
buildBy()
Looks for one of
FindBy,
FindBys or
FindAll field annotations. |
protected java.lang.reflect.Field |
getField() |
public FrostyAnnotations(java.lang.reflect.Field field)
field - expected to be an element in a Page Objectpublic org.openqa.selenium.By buildBy()
FindBy,
FindBys or
FindAll field annotations. In case
no annotations provided for field, uses field name as 'id' or 'name'.java.lang.IllegalArgumentException - when more than one annotation on a field providedprotected java.lang.reflect.Field getField()
Copyright © 2020. All Rights Reserved.