title: Python selenium issue when using contains text with a span element
body: <p>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/'</p>
  
  <pre><code>//*[contains(text(),' collections')]
  </code></pre>
  
  <p>It seems a pretty simple thing to do but somehow it doesn't work.
  Any suggestions?
  Many thanks<a href="https://i.stack.imgur.com/vEsPS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vEsPS.png" alt="enter image description here"></a></p>