python appium使用uiselector定位时,提示 Could not parse UiSelector argument: 'XXX' is not a string

运行自动化代码,appium返回Could not parse UiSelector argument: 'XXX' is not a string,其中的xxx就是定位的元素

解决方案:
外侧用 ‘’ (单引号) ,里面的字符串用 " " (双引号)

参考: https://blog.csdn.net/qq544649790/article/details/83960311

原文地址:https://www.cnblogs.com/cuitang/p/11078775.html