Total Pageviews

Tuesday, 11 December 2018

Difference between FindBys and FindAll annotations of TestNG

@FindBys : When the required WebElement objects need to match all of the given criteria use @FindBys annotation

@FindAll : When required WebElement objects need to match at least one of the given criteria use @FindAll annotation

@FindBys have AND conditional relationship among the @FindBy whereas @FindAll has OR conditional relationship.

Note that elements are not guaranteed to be in document order which are located by FindBy. 





       


Save Water | Save Energy | Save Earth     
    Stop Pollution | Stop Plastic
                 Spread Peace

No comments:

Post a Comment