I want to locate the element using Reject from the below:
<span ng-click="moderatePost(post,'R')" role="button" tabindex="0">
<i class="icon-delete-cross f-s-20 show-hide"/i>
Reject
</span>
I tried using //*[contains(text(),'Reject')]
but it could not locate the element. Please advise.