appium版本不兼容selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. Details: Problem getting session data for driver type...........

遇到此类的提示:selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. Details: Problem getting session data for driver type AndroidDriver; does it implement ‘get driverData‘?

可以试着卸载appium客户端,按照以下的命令进行安装,安装完毕后,再跑一遍脚本,没准问题就解决了。

1、appium安装

正式进入appium的安装,运行cmd,输入:npm install -g appium@1.6.3
等待安装,时间较长,耐心等待;
安装完成之后配置环境变量,编辑path,添加:D:\Tools\nodejs\node_global即可;
运行cmd,输入:appium -v,若正常显示版本信息,则appium环境安装成功;

2、appium-doctor安装:

这一步是安装appium环境的检测工具,可以检测当前环境是否满足执行appium自动化的要求
运行cmd,输入:npm install -g appium-doctor;
等待安装完成;
运行cmd,输入appium-doctor,若正常出现以下信息,则表明appium运行依赖环境全部安装成功,可以使用appium进行自动化测试;

appium版本不兼容selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. Details: Problem getting session data for driver type...........

转载:
版权声明:本文为CSDN博主「九歌0827」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/darkmanno5/article/details/72795015

appium版本不兼容selenium.common.exceptions.SessionNotCreatedException: Message: A new session could not be created. Details: Problem getting session data for driver type...........

上一篇:Python MySQL单条数据快速入库方法(使用 sqlacodegen)


下一篇:MySQL_08约束