Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97799

chromedriver.exe is ALREADY in PATH but still getting error message

$
0
0

I was writing on VisualCode studio, but I keep getting the same error message.

selenium.common.exceptions.WebDriverException: Message: 'chromedriver.exe' executable needs to be in PATH.

Is it simply because you just can't run webdriver on vscode studio?

I've already tried

from selenium import webdriver
driver=webdriver.Chrome(executable_path=r"C:Users/.../chromedriver.exe")
driver=webdriver.Chrome("C:Users/.../chromedriver.exe")

and basically every solution you can find online regarding this problem.

I've download chromedriver from here: https://chromedriver.chromium.org/.

I've also added the file in PATH by clicking "system">>"environment variables", and added the downloaded file containing chromedriver.exe in both user variables and system variables of PATH.

I've also tried coping the chromedriver.exe file in to the python3.7/scripts file, then added the file manually in PATH, then restart my computer.

Can someone please help me on this matter? or just recommended some place I can successfully run the webdriver?


Viewing all articles
Browse latest Browse all 97799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>