In a page there are a list of buttons. Source code of each button is the same except for the link text.
I need to confirm the all the buttons in one page are clickable using WebDriverWait.until. I can the following
WebDriverWait(driver,10).until(ec.element_to_be_clickable(By.XPATH,'//a[@class="ng-scope"]'))
to confirm the first button to be clickable, but how can I confirm the second one without using the text feature(abc|efg)?
Any suggestion to extract the index within xpath? Thank you.
<li class="ng-scope" ng-report="one in typelist">
<a class = "btn ng-binding" ng-class="{aabbcc}"> abc</a>
</li>
<li class="ng-scope" ng-report="one in typelist">
<a class = "btn ng-binding" ng-class="{aabbcc}"> efg</a>
</li>