Skip to content Skip to sidebar Skip to footer

Making Program Using Chromedriver, Getting Error: "Could Not Get Version For Chrome With This Command"

This is my code. I am doing it this way because when I tried to put a path to chromedriver.exe, I was either getting 'WebDriverException: Message: 'chromedriver.exe' executable may

Solution 1:

It is a bug in webdriver_manager link.

To avoid this issue you can use google-chrome-stable browser instead of chromium-browser.


Solution 2:

That is because you have not mentioned the chrome type. use the following code

from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.utils import ChromeType


    browser = webdriver.Chrome(ChromeDriverManager(chrome_type=ChromeType.GOOGLE).install())

Solution 3:

A bit late to answer but may be you are missing packages like in my case I was missing build packs on Heroku.

heroku buildpacks:add heroku/chromedriver

heroku buildpacks:add heroku/google-chrome

After this, do an empty commit and redeploy:

git commit --allow-empty -m "Empty Commit"

git push heroku master


Post a Comment for "Making Program Using Chromedriver, Getting Error: "Could Not Get Version For Chrome With This Command""