TA的每日心情 | 难过 2016-10-20 10:51 |
---|
签到天数: 10 天 连续签到: 1 天 [LV.3]测试连长
|
浏览器用的是firefox33.1.1,python3.5.2的
代码和报错信息
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> from selenium import webdriver
>>> driver=webdriver.Firefox()
Traceback (most recent call last):
File "C:\python\lib\site-packages\selenium\webdriver\common\service.py", line 64, in start
stdout=self.log_file, stderr=self.log_file)
File "C:\python\lib\subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "C:\python\lib\subprocess.py", line 1224, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
driver=webdriver.Firefox()
File "C:\python\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 135, in __init__
self.service.start()
File "C:\python\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
还是想加下楼主的QQ,我的QQ是1126359023 |
|