I need to get the span element by matching its entire text which has a line break.
Below is sample HTML:
<div class="class1"> <a> <span>fourth<br>team</span> </a> </div>
I know we can use
//span[contains(text(),'fourth')], but is there any way to match the entire text?