appium 1.6.x版本去除安装Unlock、Setting

时间:2019-03-15 14:48:21   收藏:0   阅读:24

 

 

(appium目录不知道可以查看appium运行日志)

修改目录/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/build/lib/下的

android-helpers.js和driver.js文件

 

android-helpers.js

注释掉以下

 

helpers.pushSettingsApp = function callee$0$0(adb) {

  return _regeneratorRuntime.async(function callee$0$0$(context$1$0) {

    while (1) switch (context$1$0.prev = context$1$0.next) {

      case 0:

        _logger2[‘default‘].debug("Pushing settings apk to device...");

        context$1$0.prev = 1;

        context$1$0.next = 4;

        //return _regeneratorRuntime.awrap(adb.installOrUpgrade(_ioAppiumSettings.path, SETTINGS_HELPER_PKG_ID));//注释掉

        return;//增加

 

helpers.initUnicodeKeyboard = function callee$0$0(adb) {

  var defaultIME, appiumIME;

  return _regeneratorRuntime.async(function callee$0$0$(context$1$0) {

    while (1) switch (context$1$0.prev = context$1$0.next) {

      case 0:

        _logger2[‘default‘].debug(‘Enabling Unicode keyboard support‘);

        _logger2[‘default‘].debug("Pushing unicode ime to device...");

        context$1$0.next = 4;

        //return _regeneratorRuntime.awrap(adb.install(_appiumAndroidIme.path, false));//注释掉

        return;//增加

 

context$1$0.next = 14;

//return _regeneratorRuntime.awrap(helpers.pushSettingsApp(adb));//注释掉

return;//增加

 

context$1$0.next = 17;

//return _regeneratorRuntime.awrap(helpers.pushUnlock(adb));//注释掉

return;//增加

评论(0
0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!