Given the following html:
<div>
<h4>some text</h4>
<div>
<ul></ul>
<div></div>
<p></p>
</div>
</div>
These two xpaths find 1 node each:
//h4[contains(text(), 'some text')]/following-sibling::div/ul
//h4[contains(text(), 'some text')]/following-sibling::div/p
But this one returns 0 finds.
//h4[contains(text(), 'some text')]/following-sibling::div/div
Why doesn't the third xpath also return 1 find?