I have this HTML
:
<div>
I
<span> need</span>
this
<span> text</span>
</div>
I want to find this div
, looking at what text have inside (concatenate all text).
Something like: //div[text() = 'I need this text']
, but of course, it not work.
How I can done this?