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

posted on 2019-06-24 18:42  刚刚好1  阅读(835)  评论(0编辑  收藏  举报

导航