我有这个 HTML:
<div>
here a long text1 ...
<br>
<br>
here some more text2 ...
<br>
<br>
Here also text3 ..
<br>
<br>
Here text4 and so forth
</div>
我只想要第 4 个 br 标签之前的文本,也许还有 br 标签本身。像这样:
here a long text1 ...
<br>
<br>
here some more text2 ...
<br>
<br>
什么是正确的xpath?