I have a script which uses selenium for testing. Now even opening a Google page using
driver.get(url) # url = Google homepage url
is giving me below error
driver.get("https://my.gumtree.com/login")
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 245, in get
self.execute(Command.GET, {'url': url})
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 233, in execute
self.error_handler.check_response(response)
File "C:\Python34\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status
from unknown error: missing or invalid 'entry.level'
(Session info: chrome=65.0.3315.3)
(Driver info: chromedriver=2.29.461591 (62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.16299 x86_64)
I have Google chrome version 65, Chromedriver 2.35 and selenium 2.53.1
I tried different version combinations(mentioned in below table) as per solutions mentioned in other similar questions but nothing worked.
Selenium Chrome Chromedriver
2.53.0 63 2.33
2.53.1 65(latest) 2.34
3.6.0 2.35(latest)
3.7.0
3.8.0
3.8.1(latest)
EDIT 1: JDK version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
That error means your chrome browser is not compatible with the web driver. If you are using Linux, then simply execute the following command. sudo apt-get update
Go to http://chromedriver.chromium.org/downloads
copy the download link according to your OS
unzip it using below command
Give the permission by the below command
Then follow the below commands, if it says already exists (probabily old version) then go to that path (/usr/local/bin/chromedriver and /usr/bin/chromedriver) and delete chromedriver and run the commands again
Hope this helps. Thanks
The error says it all :
Your main issue is the version compatibility among the binaries you are using as follows :
chromedriver=2.29.461591
(which is as per the logs, though you mentionedChromedriver 2.35
in your question)chromedriver=2.29.461591
clearly mentions the following :chrome=65.0.3315.3
chromedriver=2.35
clearly mentions the following :Selenium Version 2.53.1
.JDK version
is unknown to us.Solution
JDK
to recent levelsJDK Version 8 Update 151
.ChromeDriver
toChromeDriver v2.35
level.Chrome
toChrome v64.x
levels. (as per ChromeDriver v2.35 release notes
)Selenium
to current levelsVersion 3.8.1
.Test
.