python 中将selenium 版本降级

来源:互联网 发布:apache ant zip.jar 编辑:程序博客网 时间:2024/05/16 18:14

python运行appium代码时提示“WebDriverException: Message: Parameters were incorrect. We wanted {“required”:[“value”]} and you sent [“text”,”sessionId”,”id”,”value”]”
需要将对应 的selenium版本进行降级
降级方法如下:

1)查看当前的selenium版本打开终端,输入pip show seleniumpython3 -m pip show seleniumpython2.7 -m pip show selenium2)删除当前python下的selenium版本为了避免与之前安装的selenium版本冲突,先找到selenium3.0目录:python\Lib\site-packages目录把里面selenium开头的文件全部删除就可以了。python所有的第三方包都在这个目录下面。selenium相关的目录全部删除。3)打开终端,输入pip install selenium==2.53.6(注意是两个==,中间不要留空格,这里推荐2.53.6的版本)python3 pip install selenium==2.53.6python2.7 pip install selenium==2.53.6
原创粉丝点击