M
M
Mark Ivanych2016-08-15 12:52:56
PHP
Mark Ivanych, 2016-08-15 12:52:56

How to search for unicode chars in xpath?

Hello, tell me why xpath does not find anything in the document, although everything is searched through chrome.
//*[contains(text(), "✈")]/ancestor::div[1]
in a document, ✈ is stored as an icon.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2016-08-15
@glebovgin

If this is really a unicode character, and not an icon from some font (FontAwesome, for example), then you can try using the character value:
//*[contains(text(), "✈")]/ancestor::div[1]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question