enter image description here

Why does xpath //div[@class='message__main' and contains(.,"1 620,9 ₽")] not accept spaces inside contains() ? What is the problem with spaces

    1 answer 1

    Because it is not an ordinary space, but inseparable. In unicode, it is denoted as 0xA0 , so your expression should be like this:

     //div[@class="message__main" and contains(., "1\xA0620,9\xA0₽")] 
    • one
      only it didn’t work out right for me, but from \u00A0 - sevnight