So I have some complicated situation in the DOM where I need to create XPath and get its child element. I have the following XPath
((//p[contains(text(),'" + read_contract_title() + "')]/parent::div/parent::div)[2]//button)[2]
The above is basically a ... more options button, that I need to click and then click the child element inside of it.
How do I get about getting the child element (button) inside the above XPath?
Looking forward to your help and reply.