Reputation: 510
I know this way I can find element by attribute and value:
webDriver.findElements(By.xpath("//element[@someAttribute='someValue']"))
How can I find all elements that has the attribute someAttribute
no matter what the value is?
Thanks
Upvotes: 4
Views: 9068