Can anyone help me out with a relative XPath expression that will verify a text that is contained inside multiple span
elements
<div id="id1">
<span >Hello </span>
<span class="class2">World </span>
</div>`
I am new to selenium and I haven't used XPath that much. I need an XPath that will return the text "Hello World" in one line(preferred outcome) or even a list of text values.