XPath - 无法使用其他语言环境字符访问 XPath

XPath - Unable to access XPath with other locale characters

我正在尝试访问包含 iOS 中其他语言字符的 XPath,例如:

//UIAStaticText[@name='España']//UIAStaticText[@label='España']

但是这个 XPath 没有被创建并返回一个 nilClass 错误。

XPath 是否支持其他语言字符?

使用 contains 并传递少量字符,因此它将搜索属性名称包含 "Esp" 的元素: //UIAStaticText[contains(@name,'Esp')]

这是一个 XPath 问题,无法创建具有 special characters/other language special character.

的 selenium Web 驱动程序元素