equal elements same page
I'm testing a feature that appears two buttons to record with the same ID. I need to click on one, but he clicks on the first .
I tried using XPath but they have the same way.
Does anyone have any idea what to do ?
Originally Posted by eduandrade
Use findElements() instead of findElement(), this will return an array or list. Then you can index that. listOfElements.click()