Here is the html code:
< input class=\"form-control input-lg input auto-complete\" id=\"ymMsgInput\" type=\"text\" placeholder=\"Type your message ...\" a
The error says it all :
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: chrome not reachable
This error is observed in case of version compatibility between the binaries which an user uses but definitely this is not your case as you are :
Selenium version unknown
Release Notes of chromedriver=2.36 clearly mentions :
Supports Chrome v65-66
But, since the release of the latest Chromedriver 2.36 Selenium users had been facing issues with it. Here is one of the threads :
The root cause is related to the commit regarding :
Remove --disable-infobars
So, a couple of possible solution will be to :
To use ChromeOptions Class to maximize the browser.
disable-infobars
An example :
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.add_argument("start-maximized")
driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:\path\to\chromedriver.exe')
driver.get('https://www.google.co.in')
print("Page Title is : %s" %driver.title)
If your issue still persists consider the following :
Test
.Your exception is not about finding an element. Selenium is not able to contact Chrome. You can do couple of things.
Downgrade/upgrade your chromedriver based on your selenium version.
Pass --no-sandbox to chrome options.
chrome_options.add_argument('--no-sandbox')
chrome = webdriver.Chrome('/usr/local/bin/chromedriver', chrome_options=chrome_options)