python3+selenium+pycharome与浏览器驱动配置成功后,运行测试代码,系统报错

AttributeError: module 'selenium.webdriver.common.service' has no attribute 'Service'

 

 

在网上找了N多资料也没有找到解决资料,最后试验很久,发现卸载selenium,再重新安装selenium得以解决

pip uninstall selenium

pip install selenium

猜测可能是因为从python2切换到python3,selenium没有切换到对应的版本,所以运行时候报错,卸载后,自动下载安装到了对应的版本,得以解决

相关文章:

  • 2021-10-09
  • 2021-09-09
  • 2021-10-09
  • 2021-12-13
  • 2021-06-06
  • 2021-07-27
  • 2021-05-07
  • 2022-01-23
猜你喜欢
  • 2021-11-14
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
相关资源
相似解决方案