DEV Community

Discussion on: Selenium Java Tutorial – Class Name Locator In Selenium

Collapse
 
ddaypunk profile image
Andy Delso

For the case of multiple elements with the same selector the best solution is to use custom days attributes as targets with a value that makes it unique. It has served our framework well from a simplicity and maintainability standpoint.