Could not parse UiSelector argument: 'XXX' is not a string 错误解决办法

ebDriverWait(driver,20).until(EC.visibility_of_element_located((MobileBy.ANDROID_UIAUTOMATOR,new UiSelector().text("我的柠檬")'))).click()

报错:

Message: Could not parse UiSelector argument: ‘xxxxxxxxx’ is not a string

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

原文地址:https://www.cnblogs.com/wlyhy/p/10645655.html