Unable to make xpath work for an HTML block of code
I have this html block: <td><a href="#" class=""> <i class="far fa-times mr-1"></i>Cancel</a></td> I wrote the following xpath to find this Cancel anchor, but this is not working. What am I doing wrong? //a[contains(text(), ‘Cancel’)] The following xpath works but i need to learn what am i doing wrong in the above one: //i[@class=’far fa-times mr-1′]/..… Read More Unable to make xpath work for an HTML block of code