@FindBy(xpath code example
Example 1: findby(xpath selenium java)
@FindAll(@FindBy(how = How.XPATH, using = "//a[@class='fNiv' and contains(text(), 'Home')]"))
List<WebElement> allElements;
Example 2: findby(xpath selenium java)
@FindBys(@FindBy(xpath="//a[@class='fNiv' and contains(text(), 'Home')]")))
List<WebElement> allElements;