1、百度下载chromedriver
2、解压文件,有chromedriver.exe
3、 把chromedriver.exe 放到 谷歌浏览器的根目录里面。
4、在pycharm 中调用webdriver 时,如下:
chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe" driver = webdriver.Chrome(chromedriver)
1、百度下载chromedriver
2、解压文件,有chromedriver.exe
3、 把chromedriver.exe 放到 谷歌浏览器的根目录里面。
4、在pycharm 中调用webdriver 时,如下:
chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe" driver = webdriver.Chrome(chromedriver)
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。