Loading

Appium|Locator Strategy ... is not supported for this session

appim server log

InvalidSelectorError: Locator Strategy 'xpath,//android.widget.TextView[@resource-id='xxx.xxx.xxx:id/sign_out_tv' and @text='退出当前账号']' is not supported for this session

原因

sign_out_loc = (By.XPATH,"//android.widget.TextView[@resource-id='xxx.xxx.xxx:id/sign_out_tv' and @text='退出当前账号']")

直接调用 sign_out_loc .click()方法导致

解决办法:先调用find_element方法,返回element对象后再调用click()方法


posted @ 2019-11-21 10:04  秦无殇  阅读(557)  评论(0编辑  收藏  举报