Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Latest Chrome Driver Version 74? #318

Closed
bbarman4u opened this issue Mar 14, 2019 · 25 comments
Closed

Issue with Latest Chrome Driver Version 74? #318

bbarman4u opened this issue Mar 14, 2019 · 25 comments

Comments

@bbarman4u
Copy link

Currently whenever the tests are executing on windows with latest chrome driver 74.x version being pulled down, we are getting the following error. Tested on machines running windows 7, windows server 2012 among others. Used the stop gap work around to force use 2.46 in the mean time.

So should the 74.x be made the default here ?

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74
23:04:25 (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)

@jacsamell
Copy link

Updating to the latest version of webdrivermanager (3.3.0) should fix it.
The older version wasn't aware of Chrome 73.

@bonigarcia
Copy link
Owner

bonigarcia commented Mar 14, 2019

The solution to this problem is upgrading to the latest version of WebDriverManager, i.e. 3.3.0 at the time of this writing. Old versions of WDM simply downloads the latest versions of binaries. Latest version of chromedriver at this moment is 74.*, which is incompatible with Chrome 73 (which is the stable now). But as of version 3, WDM finds out the version of the browser (Chrome in this case), mapping the proper binary (chromedriver). This info is stored internally in the file versions.properties. If the browser is unknown in the local version, the online master version of that file is read instead.

All in all, you need to upgrade WDM and then resolve the binary as usual:

WebDriverManager.chromedriver().setup();

Said that, it is possible that the problem still happens using version 3.3.0, at least for a while. Latest versions of WDM uses Java preferences to store persistently the resolved versions for binaries (as a file in Linux/Mac or in the registry in Windows). This value has a time-to-live value, by default 3600 seconds. It might happen that the bad version (chromedriver 74) for the browser (Chrome 73) has been stored. In this case, you can try this:

WebDriverManager.chromedriver().clearPreferences();
WebDriverManager.chromedriver().setup();

If the problem is solved now, the line WebDriverManager.chromedriver.clearPreferences(); can (and should) be removed for next executions.

@bananadine
Copy link

bananadine commented Mar 14, 2019

I tried using 3.3.0 with clearPreferences(); without any luck and i also cleared java temps, ran mvn clean on the project, tried with different brower versions. All it does is download the correct version of the driver AND chrome driver 74. It then starts the incorrect driver for 74

@enedelina
Copy link

I workaround the issue in a most easiest way ... I copy the driver from folder 73.0.3683.68 and replaced it in 74.0.3729.6. Works for me.

@sakthi2794
Copy link

Updated WebDriver manager dependency version to 3.3.0 and it worked for me.

@medy75
Copy link

medy75 commented Mar 18, 2019

I have a same issue even when using WDM 3.3.0
I tried

WebDriverManager.chromedriver().clearPreferences();
WebDriverManager.chromedriver().setup();

Still getting

org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Mac OS X 10.14.3 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.11 seconds

@rahol
Copy link

rahol commented Mar 19, 2019

Hi, @bonigarcia

I am also facing the same issue while using WDM , my chromedriver version showing is Latest version of chromedriver is 74.0.3729.6 and my chrome browser version is 72v.

Getting this error :org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74

I tried your solution but that didn't work for me.!!!
Can you help me out

@rahol
Copy link

rahol commented Mar 19, 2019

WebDriverManager.chromedriver().version("2.46").setup();

Try this , it work for me

@medy75
Copy link

medy75 commented Mar 20, 2019

I am able to force webdriver version by -Dwdm.chromeDriverVersion=73 but its not acceptable for me.

@ghost
Copy link

ghost commented Mar 25, 2019

Hi I am using this with protractor on Windows. This seems to be a Linux thread and I know the issue is closed, but I am seeing the same issue on the Windows version: webdriver-manager v13.0.0 (Note: Updating to 3.30 won;t work because it's a different version for Linux vs Windows) All the folders are different so I can't employ the workaround listed here. Please provide a windows based workaround. Will the underlying defect be fixed? i.e., the mismatch with Chrome version? If this is the wrong place, where would I post this for a solution? (dup of my #313 comment) Cheers - RW

@ghost
Copy link

ghost commented Mar 25, 2019

@medy75 May I ask, where in the code did you force the chromeDriverVersion? Folder/File etc. Much Thanks, RW

@medy75
Copy link

medy75 commented Mar 25, 2019

@RoakyWood via parameter when running tests with Maven

@ghost
Copy link

ghost commented Mar 25, 2019

@medy75 Thanks, RW

@ghost
Copy link

ghost commented Mar 25, 2019

Although the issue is the same, I am on the wrong forum, I needed npm "webdriver-manager", so I am headed there. Apologies..., RW

@jadcode
Copy link

jadcode commented Mar 26, 2019

I have a problem, with the last versión , chromedriver show me this message:

Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.

I used the last versión of chromedriver and works fine but not work with webdrivermanager

@medy75
Copy link

medy75 commented Mar 26, 2019

@jadcode your problem is not related with this issue. Message about port protection is only warning and has no impact on work of webdriver. If you want a help with setting up your project, use another thread or read documentation carefuly.

@dayanacgeorge
Copy link

Whether this will work when I execute from Jenkins? For my case, the chromedriver is starting but closing/crashing immediately.

@ddsky
Copy link

ddsky commented Apr 16, 2019

@medy75 did you find a different solution for getting this to work other than -Dwdm.chromeDriverVersion=73? I have exactly the same problem using WDM 3.4.0 and latest selenium version and I get pretty much the same as you

Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 3.16.0-4-amd64 x86_64) 

None of the suggestions in this thread or 313 helps.

@vnktrmn
Copy link

vnktrmn commented Apr 23, 2019

I face the same issue on WDM 3.4.0 on a AWS CodeBuild with chrome 65 on it. I forced version("2.36") and version("2.45").setup() but with no luck.

Any suggestions on this is highly appreciated.

My buildspec install phase on codebuild looks something like this :

      - apt-get install -y software-properties-common
      - add-apt-repository -y ppa:canonical-chromium-builds/stage
      - apt-get update -y
      - apt-get install -y chromium-browser

@CloCkWeRX
Copy link

I found bumping from chromedriver 1.2.0 to 2.1.0+ resolved the issue; assuming it was looking for experimental versions via https://github.com/flavorjones/chromedriver-helper/blob/master/CHANGELOG.md#210---2018-09-18

@saadmalik956
Copy link

Hi,

Had same problem, but I have downloaded the latest chromedriver, from http://chromedriver.chromium.org/

and FIXED!

Saad Malik

@Azhagu-selenium
Copy link

can any one please help on this !!!!!
Chrome version :76.0.3809.....

  1. My POM dependencies as mentioned below . but am getting error is session not created: This version of ChromeDriver only supports Chrome version 77
org.testng testng 6.8 test org.seleniumhq.selenium selenium-chrome-driver 3.141.59
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>3.6.2</version>
<scope>test</scope>
  1. ********** am getting error the below**

[RemoteTestNG] detected TestNG version 6.14.3
1849 [main] INFO io.github.bonigarcia.wdm.WebDriverManager - Reading https://chromedriver.storage.googleapis.com/ to seek chromedriver
2992 [main] INFO io.github.bonigarcia.wdm.WebDriverManager - Latest version of chromedriver is 77.0.3865.10
3011 [main] INFO io.github.bonigarcia.wdm.Downloader - Using binary driver previously downloaded
3012 [main] INFO io.github.bonigarcia.wdm.WebDriverManager - Exporting webdriver.chrome.driver as C:\Users\Azhagu.R.m2\repository\webdriver\chromedriver\win32\77.0.3865.10\chromedriver.exe
Starting ChromeDriver 77.0.3865.10 (bc3579f611bbc73331171afe020ec7a45e6ccc55-refs/branch-heads/3865@{#93}) on port 22858
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
PASSED: slotrequest1
FAILED: launchpad
org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 77
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'CHELENL280', ip: '192.168.225.84', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_121'
Driver info: driver.version: ChromeDriver

@SaiNiranjan
Copy link

Even I am having similar issue,

Chrome version :76.0.3809
I have 3.6.2 version in my POM.xml

I tried even downgrading version to 73, 74, 75 but no luck,

WebDriverManager.chromedriver().version("74");
WebDriverManager.chromedriver().setup();

With the version 74, I am getting below error while triggering build from Azure DevOps,

buildfail2

buildfail

--------------*****************************************------------------------------------------------

I am getting similar error with the version 76, I am getting below error while triggering build from Azure DevOps.

@bonigarcia Please address this latest issue. Thanks.

@laxmibala
Copy link

My code is working locally but getting this issue with chrome version 74 and WebDrivermanager 3.6.2 while running from jenkin

org.openqa.selenium.WebDriverException:
unknown error: cannot find Chrome binary
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'EPINPUNW0140', ip: '10.22.95.28', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_201'
Driver info: driver.version: ChromeDriver
remote stacktrace: Backtrace:
Ordinal0 [0x00837C93+1473683]
Ordinal0 [0x007BADB1+961969]
Ordinal0 [0x007442E3+475875]

@ellvix
Copy link

ellvix commented Dec 17, 2019

Had SessionNotCreatedError, "This version of ChromeDriver only supports Chrome version 77" after my browser auto updated.

Solved by going to chromedriver.chromium.org, downloading the latest, and then replacing the chromedriver.exe that was buried within my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests