问题一:
命令行启动Appium后,执行测试用例,报错
File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emotewebdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emotewebdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emotewebdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "C:UsersluoliangAppDataLocalProgramsPythonPython36-32libsite-packagesseleniumwebdriver emoteerrorhandler.py", line 130, in check_response
status = value["status"]
KeyError: 'status'
具体原因还未查明,当前处理方式:
重新安装appium版本 cnpm install -g appium
问题二:appium-doctor执行报错
$appium-doctor
info AppiumDoctor Appium Doctor v.1.4.3
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor ✔ The Node.js binary was found at: /Users/yanglongfeng/.nvm/versions/node/v8.11.0/bin/node
info AppiumDoctor ✔ Node version is 8.11.0
info AppiumDoctor ✔ Xcode is installed at: /Applications/Xcode.app/Contents/Developer
Error: Could not detect Mac OS X Version from sw_vers output: '10.14.5'
at Object.macOsxVersion$ (/usr/local/lib/node_modules/appium-doctor/node_modules/appium-support/lib/system.js:43:11)
at tryCatch (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium-doctor/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at <anonymous>
具体原因未查明,当前处理方式:
重新安装appium cnpm install -g appium-doctor