It will locate fail sometimes when using text to locate object

I don’t why it fails when I use //span[(text() = ‘HQ(HQ SYSTEM)’ or . = ‘HQ(HQ SYSTEM)’)] to locate a object

Please post a more detailed description including your test script, the surrounding html, and the error log.