<s>[INST] xpath to get a span node that contains the text " Estimate ".

HTML

<span class="">
Estimate
<span class="font-dark-d floatRight">25 - 35 EUR</span>
</span> [/INST] Can you be more specific with your question?</s>\ <s>[INST] I'm looking for the xPath I can use in my javascript to refer to that HTML element. [/INST] The xpath expression to select the span node that contains the text "Estimate" would be:

//span[text()='Estimate']</s>