Finding elements using a more generic method - Selenium

We have had a look at using helper methods to find elements on the page. The downside to using them is that if something changes, you need to change the entire method that you are using to find the element. This can increase the maintenance costs for doing this.
The other approach is to use the findElement() method, pass in the By abstract class, and call static methods on that class.
Let's see this in action.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Selenium Topics