Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying to set my Chrome binary location in my selenium webdriver But I am facing following error WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome in python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
- How WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error Occurs ?
- How To Solve WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error ?
- Solution 1: Use this code
- Solution 2: Make sure chrome browser is installed
- Summary
How WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error Occurs ?
I am just trying to set my Chrome binary location in my selenium webdriver But I am facing following error.
WebDriverException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.26.436362
(5476ec6bf7ccbada1734a0cdec7d570bb042aa30),platform=Windows NT 10.0.14393 x86_64)
How To Solve WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error ?
How To Solve WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error ?
To Solve WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error Just make sure that you have chrome browser is installed If you dont have then just Download the browser and it fixes this issue.
WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome
To Solve WebDriverException: unknown error: cannot find Chrome binary error with Selenium in Python for older versions of Google Chrome Error Just make sure that you have chrome browser is installed If you dont have then just Download the browser and it fixes this issue.
Solution 1: Use this code
Just use following code and you can set your binary path then your error will be solved.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = "C:\\Program Files\\Chrome\\chrome64_55.0.2883.75\\chrome.exe"
driver = webdriver.Chrome(chrome_options = options, executable_path=r'C:\path\to\chromedriver.exe')
driver.get('http://google.com/')
print("Chrome Browser Invoked successfully")
driver.quit()
Solution 2: Make sure chrome browser is installed
Just make sure that you have chrome browser is installed If you dont have then just Download the browser and it fixes this issue.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read