I have to find text on a page, which I did. Now I need to find the xpath of the <td>
element containing that text so that I can use the <td>
xpath to find other elements like the image button and the delete button.
Image Description: This image contains one <Td>
in which there is one <a>
tag which contains text, i.e. Automation Testing, so first I have to find the text and then find the xpath of the <td>
. The <a>
tag contains an id attribute but this id changes dynamically according to the user input so I cannot find <a>
tag with id.