I am trying to click an element with Selenium, that has a specific title attribute. I have tired do use an XPath before, however, the problem is that there are two buttons on the website with the same XPath. If one button is active, it has the same XPath as the other when its active and vice versa.
The only thing that differentiates these two buttons in the title attribute.
<a class="qPKfxd" href="SOME LINK" title="List">
Basically I am trying to only click that element if the title is "List".
Has anyone got an idea of how to specify that with Selenium?
Please let me know if you need to view more code.