环境信息:Windows7 64位 + python 3.6.5 + selenium 3.11.0 +pyCharm
1 #coding=utf-8 2 from selenium import webdriver 3 driver=webdriver.Firefox()
解决方法:
1.下载geckodriver,路径:https://github.com/mozilla/geckodriver/releases
2.解压后无需安装,将其解压路径配置到环境变量PATH
环境信息:Windows7 64位 + python 3.6.5 + selenium 3.11.0 +pyCharm
1 #coding=utf-8 2 from selenium import webdriver 3 driver=webdriver.Firefox()
解决方法:
1.下载geckodriver,路径:https://github.com/mozilla/geckodriver/releases
2.解压后无需安装,将其解压路径配置到环境变量PATH