non-breaking-characters

How can I find the exact value using xpath in selenium webdriver for text that contains  ?

夙愿已清 提交于 2019-12-14 02:32:23
问题 I'm having an issue selecting the exact text 'Section' from the code using xpath. ** To be clear I require the exact text selection to be made from the innerText or innerHTML of the element if that is possible, not the id. ** I'm able to use the contains text function, but that results in other partial matches that contain 'Section' being returned/highlighted as well: //div[@aria-hidden='false']//ul/li[contains(text(),'Section')] I've tried using the following methods, but I don't know if I