To use Chrome version 55.x installed in non standard location through ChromeDriver v2.26 you can use the following code block : from selenium import webdriverĭriver = webdriver.Chrome(chrome_options = options, executable_path=r'C:\path\to\chromedriver. However you can also override the default Chrome binary location as follows: Using a Chrome executable in a non-standard location
In the right pane double click on the LoadAppInitDLLs option. In the top line navigate to HKEYLOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\. Type regedit and click OK to launch the Registry Editor. The ChromeDriver server expects you to have Chrome installed in the default location for each system as follows:ġ For Linux systems, the ChromeDriver expects /usr/bin/google-chrome to be a symlink to the actual Chrome binary. Press Windows + R keys which will open the Run command box. implies that the ChromeDriver was unable to find the Chrome binary in the default location for your system. WebDriverException: unknown error: cannot find Chrome binary Any help is greatly appreciated - thank you in advance! I have tried searching through similar questions and answers but have not had any luck so far. However, when I attempt to launch the WebDriver Python returns the following error: WebDriverException: unknown error: cannot find Chrome binary Options.binary_location = "C:\\Program Files\\Chrome\\chrome64_.75\\chrome.exe"ĭriver = webdriver.Chrome('chromedriver.exe', chrome_options = options) I am using the following code to attempt to set my Chrome binary location: from selenium import webdriverįrom import Options I downloaded the older version of chrome from and Chromedriver 2.26 from. For compatibility reasons I prefer to use Chrome version.