python appium Attempt to re-install io.appium.settings without first uninstalling.]解决方案
来源:互联网 发布:和外国人聊天的软件 编辑:程序博客网 时间:2024/06/06 13:05
好久没用appium了,然后就升级了一下,最新的node 和appium是不兼容的,没办法,降级node
装了appium 1.4
尝试了初始默认计算器调用,一直报错Attempt to re-install io.appium.settings without first uninstalling.
device_name = get_android_udid()stop_android_appium()start_android_appium(device_name)desired_caps = { 'platformName': 'Android', 'deviceName': device_name, 'platformVersion': '7.1.1', 'appPackage': 'com.android.calculator2', 'appActivity': 'com.android.calculator2.Calculator'}driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)原来 uiautomator 与android7.1.1不兼容,
解决方案:
1、更改C:\Program Files (x86)\Appium\node_modules\appium\lib\devices\android
更改为下图
2、然后再C:\Program Files (x86)\Appium\node_modules\appium\node_modules\appium-adb\lib
修改如下图
ADB.prototype.shell_grep = function (cmd, grep, cb) { if (cmd.indexOf('"') === -1) { cmd = '"' + cmd + '"'; } var execCmd = 'shell ' + cmd + '| grep ' + grep; this.exec(execCmd, cb); };
this.shell_grep("ps", name, function (err, stdout) { if (err) { logger.debug("No matching processes found"); return cb(null, []); }
然后重启appium 小华为的计算器就被调起来了
二〇一七年十二月二十日 14:57:29更新 android 7 appium1.4.6 win10
增加了默认使用 appium 键盘
desired_caps = { 'platformName': 'Android', 'deviceName': device_name, 'platformVersion': '7.1.1', 'unicodeKeyboard': True, 'resetKeyboard': True, 'appPackage': 'cn.zlddata.zldtest', 'appActivity': 'cn.zlddata.zldtest.MainActivity'}driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
又会报错
执行
adb uninstall io.appium.android.ime
然后在执行 会有意外发现
阅读全文
1 0
- python appium Attempt to re-install io.appium.settings without first uninstalling.]解决方案
- How to Install Appium on Ubuntu
- appium-python
- mac install appium
- appium
- Appium
- Appium
- Appium
- Appium
- appium
- Appium
- Appium
- Appium
- Appium
- 【FAQ】appium npm install error:network read ECONNRESET,bad network settings!
- iOS+APPIUM+Python部署
- appium+python实例
- Appium python 框架
- 正则表达式 匹配以特定字符串开头 到任意第一个字符中间的空格
- JavaScript闭包中的循环(二)
- linux中platform总线解析(一)(platform总线初始化)
- 移动web HLS:HTML5 视频直播介绍
- Unity3d火箭班(1)--游戏摇杆
- python appium Attempt to re-install io.appium.settings without first uninstalling.]解决方案
- Pycharm Matplotlib 图像不显示问题
- Zabbix监控系统中内置的监控参数(Key)详解
- 表格 购物车
- 约瑟环问题【java程序员面试宝典的代码更改】
- Mysql 千万以上数据优化方法(一,SQL优化),月薪30K之路系列
- itext7学习笔记——第5章实践&example
- SharpZipLib 的使用(压缩,解压)
- HTTP协议(1)__http协议简介+请求和响应内容