appium1.8.1版本,每次运行appium时需要安装unlock,setting,inputmanager三个apk文件的解决方法

xiaoxiao2025-05-02  14

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);

 

 

转载请注明原文地址: https://www.6miu.com/read-5029635.html

最新回复(0)