Please explain the difference between @FindAll and @FindBys annotations in webdriver page factory concept.
@FindAll can contain multiple @FindBy and will return all the elements which matches any @FindBy in a single list.
Example:
@FindAll({
@FindBy(id = "one"),
@FindBy(id = "two")
})
public List allElementsInList;
Whereas,
@FindBys will return the elements depending upon how @FindBy specified inside it.
@FindBys({
@FindBy(id = "one"),
@FindBy(className = "two")
})
public List allElementsInList;
Where allElementsInList contains all the elements having className="two" inside id="one"