I am trying to run a script and when I run python main.py, I receive this message. Any idea how to resolve?
Traceback (most recent call last):
File "main.py", line 230, in <module>
lv = LouisVuittonAPI(region, browser)
File "main.py", line 50, in __init__
self.driver = webdriver.Chrome()
File "/Library/Python/2.7/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
self.service.start()
File "/Library/Python/2.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
Thanks for any help
On Saturday, July 15, 2017 at 8:49:02 AM UTC-7, xpo...@gmail.com wrote:
import time
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get('http://www.google.com/');
You may refer https://sites.google.com/a/chromium.org/chromedriver/getting-started
Hope this helps!