天天看點

python+appium-desktop:安卓(android)7.0以上使用appium無法定位元素(無法refresh)且 無法運作腳本

  啟動appium時配置中添加:

      解釋:使用appium-desktop 1.6.3以及以上版本測試Android7.0及以上版本,必須使用uiautomator2;

          但是appium的appium-uiautomator2-driver有一個問題,就是它使用的adb端口寫死了端口必須是5037(即使在啟動appium的driver中設定adbPort也沒用)

  

  netstat -ano | findstr 5037 

python+appium-desktop:安卓(android)7.0以上使用appium無法定位元素(無法refresh)且 無法運作腳本