1、百度下载chromedriver

2、解压文件,有chromedriver.exe

3、 把chromedriver.exe 放到 谷歌浏览器的根目录里面。

  chromedriver 在pycharm 中的使用

 

 4、在pycharm 中调用webdriver 时,如下:

chromedriver = "C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe"
driver = webdriver.Chrome(chromedriver)

 

相关文章:

  • 2021-09-19
  • 2021-05-28
  • 2021-08-04
  • 2021-10-23
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-06-01
  • 2021-04-03
  • 2021-12-01
  • 2021-04-21
相关资源
相似解决方案