Hi guys,
i have a problem with chromedriver path
the path of chromedriver
in my repo is /veles_website/env/chromedriver
and my test file is:
def setUp(self):
self.selenium = webdriver.Chrome("/veles_website/env/chromedriver")
So I don’t know why I have this problem “selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
”
This error means that the executable is not found.
Check if the path is correct and if the file is there (you are using an absolute path outside /home
which is probably not what you want).
Can’t say anything else without seeing the build.
/Users/macbookair/Documents/GitHub/veleos_website/env/chromedriver
this is my path on my laptop we work when I launch my command on my terminal
You can test if it actually is in the python PATH, if you open a cmd and type in chromedriver and hit Enter. If Starting ChromeDriver 2.15.322448 is appearing, the PATH is set appropriately and there is something else going wrong. Then try the following:
Download ChromeDriver
Then you have multiple options:
-
Add it to your system path
-
Put it in the same directory as your python script
-
Specify the location directly via executable_path
-
driver = webdriver.Chrome(executable_path=‘C:/path/to/chromedriver.exe’)