AFAIK,您不能在xpath中转义引号,但可以在Java中转义引号。因此,请尝试对xpath文字字符串定界符使用转义的双引号,例如:
By.xpath("//UIAStaticText[@name="We don't recognize this user ID or password"]")
AFAIK,您不能在xpath中转义引号,但可以在Java中转义引号。因此,请尝试对xpath文字字符串定界符使用转义的双引号,例如:
By.xpath("//UIAStaticText[@name="We don't recognize this user ID or password"]")