0
매우 새로운 작동하지 않습니다, 나는 chromedriver 얻을 수 없거나 일을 geckodriver. 그들은 모두 /usr/local/bin/
에 있습니다. 그래서 나는 그들이 PATH에 있다는 것을 압니다.드라이버는 이것에
내 코드 : 내가 돌아올 것을 여기
from selenium import webdriver
driver = webdriver.Chrome('/usr/local/bin/chromedriver')
driver.get('http://www.google.com/xhtml');
:
Traceback (most recent call last): File "11.py", line 3, in <module>
driver = webdriver.Chrome('Desktop/chromedriver') # Optional argument, if not specified will search path. File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 68, in __init__
self.service.start() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/common/service.py", line 81, in start
os.path.basename(self.path), self.start_error_message) selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
이 코드는'webdriver.Chrome 경우 ('는/usr/LO cal/bin/chromedriver ')', 왜'webdriver.Chrome ('Desktop/chromedriver ')'라는 에러 메시지가 나옵니까? –