What is this @FindBy ? It’s an annotation on Selenium that organize the elements and using the PageFactory, these WebElements are usually initialised when a Page Object is created. It’s a best practice of Page Object Models, but more than this is a way to let your group of elements well-structured and just call when you need […]

Leia mais https://azevedorafaela.wordpress.com/2016/05/21/comparing-findby-and-map-repository-approaches/