Unable to open Chrome browser in Java Selenium code | Selenium Forum
H
Harsha Posted on 28/06/2020

unable-to-open-browser-this-version-of-chromedriver-only-supports-chrome-version-80

getting below error.

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 80
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:48'
System info: host: 'DESKTOP-DEO0AA3', ip: '192.168.2.7', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_51'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x00710C83+1707139]
Ordinal0 [0x006768F1+1075441]
Ordinal0 [0x005EDFC9+516041]
Ordinal0 [0x00580554+66900]
Ordinal0 [0x0057CCE2+52450]
Ordinal0 [0x0059BFD7+180183]
Ordinal0 [0x0059BDDD+179677]
Ordinal0 [0x00599D4B+171339]
Ordinal0 [0x00581D4A+73034]
Ordinal0 [0x00582DC0+77248]
Ordinal0 [0x00582D59+77145]
Ordinal0 [0x0068BB67+1162087]
GetHandleVerifier [0x007AA966+508998]
GetHandleVerifier [0x007AA6A4+508292]
GetHandleVerifier [0x007BF7B7+594583]
GetHandleVerifier [0x007AB1D6+511158]
Ordinal0 [0x0068402C+1130540]
Ordinal0 [0x0068D4CB+1168587]
Ordinal0 [0x0068D633+1168947]
Ordinal0 [0x006A5B35+1268533]
BaseThreadInitThunk [0x76996359+25]
RtlGetAppContainerNamedObjectPath [0x77A07C24+228]
RtlGetAppContainerNamedObjectPath [0x77A07BF4+180]

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.W3CHandshakeResponse$$Lambda$200/1580297332.apply(Unknown Source)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.HandshakeResponse$$Lambda$195/2024453272.apply(Unknown Source)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake$$Lambda$196/2085002312.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:529)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:516)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:123)
at selenium_automation.Chrome3_TestandQuiz.main(Chrome3_TestandQuiz.java:16)


S
Support Team Replied on 01/07/2020

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 80

This error comes when Chrome version is not supported by chromedriver exe file. Your chrome might have got updated.

1) Please check version of your chrome from help menu. 

2) Corresponding to that you have to download chromedriver exe from:

https://chromedriver.chromium.org/downloads

After downloading, please use the exe while opening chrome and it will work


Related Posts