As far as my understanding goes, FindBys Annotation in pagefactory returns you elements which satisfies all the condition mentioned inside. The code below always returns 0 elements.
Similarly,If I'm using FindAll annotation with same id and Xpath attribute it is returning me 2 webelements. Can anyone help me in understanding the results.
@FindBys
(
{
@FindBy(xpath="//*[@id='ctl00_ctl00_divWelcome']"),
@FindBy(id="ctl00_ctl00_divWelcome")
}
)
public List<WebElement> allElementsInList;