- 错误1:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command.
- 错误2:同一段脚本比如超级计算器,通过appium-desktop启动的Server能正常执行,但是通过 appium 命令行启动的Server,执行脚本,超级计算器已经被脚本打开了,但是接着报下面的错误
selenium.common.exceptions.InvalidSessionIdException: Message: A session is either terminated or not started
关于错误1和错误2的原因:是因为之前通过 sudo cnpm install appium@1.14.0的版本的时候有下面截图的报错,没有解决,该错误是由于权限问题导致的。
解决:彻底卸载mac上的node软件和appium,然后通过brew install node,再通过npm install -g appium@1.15.1的版本后正常了,安装过程中也没有报错,参考我的关于Mac appium 环境配置博客