Skip to content Skip to sidebar Skip to footer

Python Selenium: Webdriverexception: Message: Chrome Not Reachable

I am facing the issue with python selenium I entered the code below, it worked well few minutes ago, but now it doesn't work saying chrome not reachable Please help! from seleniu

Solution 1:

The error you are seeing gives us some hint as follows :

WebDriverException                        Traceback (most recent calllast)
<ipython-input-36-6bcc3a6d3d05>in<module>()
----> 1 driver.get('https://google.com')

Here are some observations and remedies :

  • First of all, I would like you to look back at the exact absolute path of the ChromeDriver binary and my guess is instead of :

    /Users/Users/Downloads/chromedriver_win32/chromedriver
    

    It should have been :

    /Users/Downloads/chromedriver_win32/chromedriver
    
  • Moreover, a better way to pass the location of the ChromeDriver binary would be to pass the argument executable_path along as well, so the line would be :

    driver = webdriver.Chrome(executable_path=r'/Users/Users/Downloads/chromedriver_win32/chromedriver')
    
  • Finally, whenever you invoke get() method to open an URL try to pass the Fully Qualified Domain Name (FQDN) as follows :

    driver.get('https://www.google.co.in')
    

Solution 2:

Use this.

from selenium import webdriver
path=r"/Users/Users/Downloads/chromedriver_win32/chromedriver"
driver=webdriver.Chrome(path)
driver.get("https://google.com")

That r in the path stands for "raw" and it might fix your problem.

Solution 3:

For what it's worth, I have found that simply restarting my development machine solves this problem for me. It occasionally crops up with no particular explanation, and resolves with a reboot.

Post a Comment for "Python Selenium: Webdriverexception: Message: Chrome Not Reachable"