Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Locating email address in xpath

  • 11-05-2017 10:45AM
    #1
    Registered Users, Registered Users 2 Posts: 5,767 ✭✭✭


    Below i am trying to locate the email address within the ReportUser-7-0 Robot strong tag
    <tr>
    <td>
    <span class="tablesaw-cell-content report-user">
    <strong>ReportUser-7-0 Robot</strong>
    <br/>
    reportuser-7-0-1494492089@test.xxx.com
    <br/>
    SubInvestigator-2849  
    </span>
    </td>
    

    However, the xpath
    descendant::strong[contains(text(),'ReportUser-7-0 Robot')] and     contains(text(),'reportuser-7-0-1494492089@test.xxx.com')
    

    wont find it

    I guess because it doesnt reside in the strong tag - what is the correct way to dig out the email as it doesnt reside in any specific tag..ive tried span but no joy.


Comments

Advertisement