Issue
<a href="/pro/2/len.html" class="lol-link" href="/pro/2/len.html"> <span hide="trololo"> <img class="prod" ng-src="https://med.png" alt="Len" src="https://med.png"> </span> <span ng-hide="index" class="ng-hide"> <span>Len</span> </span> </a>
My xpath:
"//span[contains(text(), 'Len')]/preceding-sibling::span"
i want to locate text 'Len' but unfortunately my xpath doesn't work. Could somebody help?
Solution
You can try:
//span[span="Len"]/span
Answered By - Swapneel Patil
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.