I'm trying to grab a span element that has text " collections". I attach a screenshot of the HTML code. I need to get this element not using the class values but just the text. This is what I tried without any luck. Notice that there's an empty space before the word 'colelctions/'
//*[contains(text(),' collections')]
It seems a pretty simple thing to do but somehow it doesn't work.
Any suggestions?
Many thanks