I have the HTML in the screenshot, I can get the node with text in it using:
//div[contains(., 'Property Land')]
but now I want to go up one level and then find the table child of the first ancestor.
I tried:
//div[contains(., 'Property Land')]::div.panel
but this is failing. How to I get immediate ancestor of the text containing node?
