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


(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;//增加








上一篇:android rectF


下一篇:java 13-4 Integer和String、int之间的转换,进制转换