I'm trying to get text of a div, without getting text of the child span, here is my html :
<div class="Travel">
<!--ko text: marketName-->Résultat<!--/ko-->
<span class="label">Cities</span>
</div>
I want to get Résultat
, Instead I get Résultat Cities
here is what I tried :
//div[@class='Travel']//text()