How to verify the two texts is not exactly common

I noticed that your target element reside inside a node of Scalable Vector Graphics.

SVG elements belong to different XML Namespace, they do not belong to the XML Namespace of HTML.Therefore you need to write your XPath expression in the way XML Namespace aware.

Are you familiar with XML Namespace?

If not, you need to study how to write a XPath which is XML Namespace-aware.

Without that skill, you would never be able to solve your current issue.


Have a look at my previous post: