I am trying to compute xpath of an element based on its text content. Is there a way?
so far I need to have the tag to compute the xpath
//a[contains(., 'text to be found')]
I need some xpath without the tag. something like the following.
//*[contains(., 'text to be found')]
This doesn't work