1、安装appium分两种,一种似直接安装的appium客户端,另一种是npm命令行安装,两种安装的目录是不同的,我的是命令行安装
客户端安装目录一般在:
命令行安装目录一般在:
2、找到这个目录:
注释掉:
await adb.install(unicodeIMEPath, {replace: false});
await helpers.pushSettingsApp(adb);
await helpers.pushUnlock(adb);
3、再找到这个目录:
注释掉标注的,
return _regeneratorRuntime.awrap(adb.install(_appiumAndroidIme.path, { replace: false }));
return _regeneratorRuntime.awrap(helpers.pushSettingsApp(adb));
return _regeneratorRuntime.awrap(helpers.pushUnlock(adb));
添加:return context$1$0.abrupt('return', defaultIME);