一、安装
1、Could not detect Mac OS X Version from sw_vers output: '10.12.5’
/Applications/Appium.app//Contents/Resources/node_modules/appium/node_modules/appium-support/build/lib/system.js
按照以上路径打开文件,
Change From ->
case 10: _arr = ['10.8', '10.9', '10.10', '10.11']; _i = 0;
To ->
case 10: _arr = ['10.8', '10.9', '10.10', '10.11','10.12.5']; _i = 0;
2、[TypeError: Cannot read property 'replace' of undefined]
重装node.js,下载链接:https://nodejs.org/en/
3、No module named appium
在脚本中会有:from appium import webdriver
第一次运行时可能会遇到这样的error:No module named appium
之所以会报这样的error是因为没有装client
client下载地址 :https://github.com/appium/python-client
下载下来后, sudo python setup.py install
注:若只执行python setup.py install会出现以下报错:
如若不成功,请执行一下操作: