|
发表于 2018-1-21 19:52:31
|
显示全部楼层
Demo版本错误提示如下,麻烦大神看看
Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 990, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "C:\py\Demo\Demo.py", line 415, in run
Buy_Tickets(self.username, self.password, self.order, self.passengers, self.dtime, self.starts, self.ends).start_buy()
File "C:\py\Demo\Demo.py", line 228, in start_buy
self.driver = Browser(driver_name=self.driver_name, executable_path=self.executable_path)
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\site-packages\splinter\browser.py", line 63, in Browser
return driver(*args, **kwargs)
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\site-packages\splinter\driver\webdriver\chrome.py", line 35, in __init__
self.driver = Chrome(chrome_options=options, **kwargs)
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 68, in __init__
self.service.start()
File "C:\Users\LNG\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\common\service.py", line 83, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home |
|