driver=webdriver.Firefox()
运行报错:
Exception AttributeError: "'Service' object has no attribute 'process'" in <boun
d method Service.__del__ of <selenium.webdriver.firefox.service.Service object a
t 0x028940B0>> ignored
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executabl needs to be in PATH.
Path: https://github.com/mozilla/geckodriver/releases
下载后,将geckodriver.exe复制到C:Program Files (x86)mozilla firefox目录下;
并在环境变量Path中添加路径:C:Program Files (x86)mozilla firefox;
重启cmd,再次运行即可;