I am trying to access table using selenium. I wanted to take action on one table data i.e. link. But I dont have any attribute of that link which could be permanent. I have table data of other field which is having fixed text.Its sibling of link td.
<tr class="ng-scope" ng-repeat="key in DeviceList"> <td> <a class="ng-binding" href="#" ng-click="clickedDevice($index)">012</a> </td> <td class="ng-binding">Yuvraj</td> <td> <i class="fa fa-trash-o fa-lg" ng-click="deleteDevice(key.devId)"></i> </td> </tr>
Q: How to access that link using text of other td using Java + Selenium?