天天看点

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)且 无法运行脚本