appium每次运行都去安装Unlock,AppiumSetting,等3个应用,如何解决

老的appium的解决方法请参考:https://blog.csdn.net/seaker_/article/details/80608254

比较新的版本可以参考下:https://blog.csdn.net/hszxd479946/article/details/78900982

目前最新版本的解决方法:

    appium-desktop版本是1.6.1    

    appium Server版本是1.7.2

文件大概的路径:

C:\Users\xxxxx\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-android-driver\build\lib

打开 android-helpers.js文件~

  1. //853行左右  
  2. return _regeneratorRuntime.awrap(adb.install(_appiumAndroidIme.path, false));  

  3. //1314行左右  
  4. return _regeneratorRuntime.awrap(helpers.pushSettingsApp(adb));  

  5. //1329行左右  
  6. return _regeneratorRuntime.awrap(helpers.pushUnlock(adb));  

  7. //找到上面3行代码,替换成这个  
  8. return context$1$0.abrupt('return',defaultIME)  

appium每次运行都去安装Unlock,AppiumSetting,等3个应用,如何解决_第1张图片


appium每次运行都去安装Unlock,AppiumSetting,等3个应用,如何解决_第2张图片


重启appium

你可能感兴趣的:(Appium自动化测试)