Mar-22-2020, 05:20 PM
(This post was last modified: Mar-22-2020, 05:23 PM by JLogan3o13.)
I have used Selenium in other languages, just beginning to look at it in python. I am curious if anyone else has run into this issue; or if I am missing something stupid simple.
Simple code:
Even though the chromedriver.exe (the version that correlates to my Chrome version) is in PATH. If I just click Start Run, I can launch it fine as just chromedriver, so I know it is being found in the Path.
Edit: I should clarify, it works if I point it at the chromedriver, like so:
Simple code:
from selenium import webdriver browser = webdriver.Chrome() print(type(browser))returns an error:
Quote:selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/...river/home
Even though the chromedriver.exe (the version that correlates to my Chrome version) is in PATH. If I just click Start Run, I can launch it fine as just chromedriver, so I know it is being found in the Path.
Edit: I should clarify, it works if I point it at the chromedriver, like so:
from selenium import webdriver driver = webdriver.Chrome('PathTO\\chromedriver.exe') # Optional argument, if not specified will search path. driver.get('http://www.google.com/');Just don't understand why I need to specify like that when it is in the environment variable.