I am having an issue trying to find a node that does not have text, but their child has an specific text.
Here is an example of the html code:
<strong>
This is not
<span>the one</span>
</strong>
<strong>
<span>the one</span>
</strong>
So I need to find the second strong.. but the xpath that I am using is this one:
//strong/span[text()='the one']
This brings me the two elements ... but I need the second one.
I tried something like this:
//strong[not(text())]/span[text()='the one']
but it didn't work. Can anybody help me in this: