selenium find by annotation code example
Example 1: @findby selenium
@FindBy(how = How.CLASS_NAME, using = "classname")
private List<WebElement> singlecriterion;
Example 2: @findby selenium
@FindBy(how = How.ID, using = "elementid")
private WebElement element;