Python 搭建selenium自动化遇到问题总结
2019-03-18 本文已影响0人
浅夏淡过_花开时

遇到以上问题:
第一:Chrom.Driver.exe驱动有问题(版本、路径不一致等等)
第二:Chrom.exe本身有问题
解决方案:
1、指定Chromdriver.exe驱动绝对路径(不建议这样做,每次都写,会很麻烦)

2、添加Chrom.exe路径到系统环境变量中(驱动路径也可以放在这下面用户变量、新增,再点击确定)
3、在代码中指定Chrome.exe绝对路径。设置binary_location属性(不建议)

4、是在不行可以手动添加驱动的代码(不建议)
