问题描述:

执行selenium自动化脚本出现报错:TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path'

问题原因:

查看了一下是因为selenium的版本太高导致的,电脑本地环境的selenium版本是4.11以上的版本

问题解决:

1,先卸载本地高版本的selenium

pip3 uninstall selenium

2,重新安装指定版本的selenium

pip3 install selenium==3.14.0

或

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple selenium==3.14.0

建议清华源安装

更多推荐