I am not able to select "Event" in following code using text().
<a class="atg-p-8" href="https://www.abc.com">
<span class="atg-mr-12">... </span>
" Event
"
</a>
This is the Xpath that I'm using:- ( .//a/span[text() ='Event']
)
...
- "Event" is outside the span. You may also need to use a contains or partial link text function if the spacing between the word and the quotation marks is accurate.