使用Python的Selenium-Geckoriver可执行文件需要在路径中。
我对编程很陌生,一开始Python大约两个月前,我正在检查斯威加特的用Python自动化无聊的东西短信。我使用的是空闲,并且已经安装了Selenium模块和Firefox浏览器。每当我尝试运行Webriver函数时,我都会得到以下内容:from selenium import webdriver
browser = webdriver.Firefox()
例外:-Exception ignored in: >Traceback
(most recent call last):
File "C:\Python\Python35\lib\site-packages\selenium\webdriver\common\service.py", line 163, in __del__
self.stop()
File "C:\Python\Python35\lib\site-packages\selenium\webdriver\common\service.py", line 135, in stop
if self.process is None:AttributeError: 'Service' object has no attribute 'process'Exception ignored in:
of >Traceback (most recent call last):
File "C:\Python\Python35\lib\site-packages\selenium\webdriver\common\service.py", line 163, in __del__
self.stop()
File