Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Locating email address in xpath

Options
  • 11-05-2017 11:45am
    #1
    Registered Users Posts: 5,547 ✭✭✭


    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