Chromedriver opens a window that says "data:," in the address bar, and then driver.get(url) just times out.
From looking into it, the solution is usually to set the Chrome Browser Binary location. The cleanest example of this I could find was: Set chrome browser binary through chromedriver in Python
From the top answer, he writes:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.binary_location = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"
driver = webdriver.Chrome(chrome_options=options, executable_path="C:/Utility/BrowserDrivers/chromedriver.exe", )
driver.get('http://google.com/')
For Geckodriver, I run:
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
opts = Options()
opts.binary_location = "C:/Users/.../Mozilla Firefox/firefox.exe"
driver = webdriver.Firefox(options=opts, executable_path= 'G:\...\geckodriver.exe')
driver.get('http://hmpg.net/')
And it works fine.
For Chromedriver, I run:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
opts = Options()
opts.binary_location = "C:\...\Google\Chrome\Application\chrome.exe"
driver = webdriver.Chrome(options=opts, executable_path="G:\...\chromedriver.exe", )
driver.get('http://google.com/')
And the Jupyter cell keeps running until it times out. One other time the error was "WebDriverException: Message: Service C:...\Google\Chrome\Application\chrome.exe unexpectedly exited. Status code was: 0"
Initially, it seems like the problem has to do with the fact that: firefox.exe is in a user drive, and chrome.exe is in a shared drive. Any suggestions on how to isolate or troubleshoot the problem?