Python 蟒蛇与硒

Python 蟒蛇与硒,python,selenium,Python,Selenium,我遇到了和年一样的问题,我应用了答案中的建议,但我得到的是另一个错误 这是python脚本functional_test.py from selenium import webdriver browser=webdriver.Firefox() browser.get('http://localhost:8000') assert 'Django' in browser.title 这就是我得到的错误: MacBook-Pro-de-Hugo:Code hvillalobos$ pytho

我遇到了和年一样的问题,我应用了答案中的建议,但我得到的是另一个错误

这是python脚本
functional_test.py

from selenium import webdriver

browser=webdriver.Firefox()
browser.get('http://localhost:8000')

assert 'Django' in browser.title
这就是我得到的错误:

MacBook-Pro-de-Hugo:Code hvillalobos$ python3 functional_test.py
Traceback (most recent call last):
  File "functional_test.py", line 3, in <module>
    browser=webdriver.Firefox()File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/selenium/webdriver/firefox/webdriver.py", line 142, in __init__

    self.service.start()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/selenium/webdriver/common/service.py",
line 74, in start
stdout=self.log_file, stderr=self.log_file)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 1326, in _execute_child
raise child_exception_type(errno_num, err_msg)
MacBookPro de Hugo:code hvillalobos$python3 functional_test.py
回溯(最近一次呼叫最后一次):
文件“functional_test.py”,第3行,在
browser=webdriver.Firefox()文件
“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-
packages/selenium/webdriver/firefox/webdriver.py”,第142行,在__
self.service.start()
文件“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site packages/selenium/webdriver/common/service.py”,
第74行,开始
stdout=self.log\u文件,stderr=self.log\u文件)
文件“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py”,第707行,在__
恢复信号,启动新会话)
文件“/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py”,第1326行,在执行子进程中
引发子项异常类型(errno\u num、err\u msg)

我遗漏了什么?

functional_test.py中有什么?对不起,我编辑了问题以显示出来。非常感谢@demouser123