Error with Chrome version 115 and newer

Hello Everyone,

I am having problems running selenium tests after updating chrome. Has anyone had problems with the chrome drivers of the new versions?

I attached the pictures of my code.

Hi Carlos,

If you just updated Chrome you will probably need to update your chromedriver as well, the chromedriver version need to match the chrome version

It looks like the was a big change from Chrome version 114 to 115

Dave.


Below is just for reference:


https://googlechromelabs.github.io/chrome-for-testing/

Hi Dave,

Is there a way to have these drivers automatically installed for RobotFramework?

I have seen that for python there is a package for it. Check the version of chromedriver you have and if it is not compatible, download the new one and use it. It’s a good way to make everything faster and more efficient but I don’t know if it exists in RobotFramework.
The package is called webdriver_manager

Hi Carlos,

In RobotFramework no, RobotFramework has many many Libraries and these drivers are only really relevant to SeleniumLibrary, so It makes sense it’s not part of RobotFramework.

You could request it to be made part of SeleniumLibrary I guess?

Yes there is a python package webdrivermanager, I normally suggest if you are running in a CI you always run webdrivermanager before running RobotFramework.

If you’re not using a CI, then create a shell script / batch file that runs webdrivermanager then robot, configure it to pass through any command line arguments to robot so you can just always run it as you would normally run robot

Hope that helps,

Dave.

I’ve updated chrome to 116 and the Chromedriver too, but all my Robot framework tests are failing because of such issue:
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.96 with binary path /usr/bin/google-chrome
Stacktrace:

I ran my tests in Docker and I have a different issue, after that update looks like a lot crashed:
Setup failed:
WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Stacktrace:

Hi @VladislavGn

Can you try running the command below and check what version your chrome driver is?

chromedriver -v

Dave.

Hi @VladislavGn and @CarlosPitero

I think I see the problem:

$ webdrivermanager chrome
Downloading WebDriver for browser: "chrome"
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404
Error, unable to get version number for release 116.0.5845, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 116.0.5845, got code: 404

Looks like it’s a known Issue:

For now you’ll need to download the chromedriver manually from here:
https://googlechromelabs.github.io/chrome-for-testing/

Dave.

I’ve found in cache chromedriver, after their deletion all started to work normally.
I don’t know how and why I have them cached, but check on your side you have some cached outdated versions

1 Like

how did you clean chromedriver cache?

I’ve searched the entire machine for Chromedriver cached versions. Some of them were found in some paths like /selenium/… and another were saved in different directories.
I just deleted on by one in every place was found, and then copied again the latest version of the Chromedriver. After that action all started to work as expected.

1 Like

Hi Everyone,

I am able to download the latest version of Chormedriver(116.0.5845.110) by using the webdriver manager in the Robot framework. But the Chrome browser is not launching and I got the error below.

tarting test: WebUiBasicRF.TestCases.TC1.TC_001_FirstTest
20230825 13:12:28.379 : INFO : ====== WebDriver manager ======
20230825 13:12:29.199 : INFO : Get LATEST chromedriver version for google-chrome
20230825 13:12:29.199 : INFO : Get LATEST chromedriver version for google-chrome
20230825 13:12:29.199 : INFO : There is no [win64] chromedriver “116.0.5845.110” for browser google-chrome “116.0.5845.110” in cache
20230825 13:12:29.199 : INFO : Get LATEST chromedriver version for google-chrome
20230825 13:12:29.420 : INFO : WebDriver version 116.0.5845.96 selected
20230825 13:12:29.420 : INFO : Modern chrome version https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win32/chromedriver-win32.zip
20230825 13:12:29.434 : INFO : About to download new driver from https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win32/chromedriver-win32.zip
20230825 13:12:29.530 : INFO : Driver downloading response is 200
20230825 13:12:30.171 : INFO : Get LATEST chromedriver version for google-chrome
20230825 13:12:30.249 : INFO : Driver has been saved in cache [C:\Users{username}.wdm\drivers\chromedriver\win64\116.0.5845.110]
20230825 13:12:30.249 : INFO : C:\Users{username}.wdm\drivers\chromedriver\win64\116.0.5845.110\chromedriver-win32/chromedriver.exe
20230825 13:12:30.249 : INFO : ${chromedriver_path} = C:\Users{username}.wdm\drivers\chromedriver\win64\116.0.5845.110\chromedriver-win32/chromedriver.exe
20230825 13:12:30.249 : INFO : Creating an instance of the chrome WebDriver.
20230825 13:12:30.249 : INFO : Cannot capture screenshot because no browser is open.
20230825 13:12:30.249 : FAIL : TypeError: ‘module’ object is not callable
Ending test: WebUiBasicRF.TestCases.TC1.TC_001_FirstTest

Does anyone have any idea about it?

Hi,
This is also my problem, and my solution is:

  • Upgrade Selenium version
  • Upgrade Robot framework version
    It works very well.

[STDERR] [1694418397.348][SEVERE]: bind() failed: Cannot assign requested address (99)
2023-09-11 07:46:37.356 V [Chromedriver] [STDERR] [1694418397.348][INFO]: listen on IPv6 failed with error ERR_ADDRESS_INVALID
Getting the above error when running mobile scripts for android on a hybrid application when passing chromedriver version 116. Someone please help out.

Hi vidya,

I think your issue is something completely different as this thread is not related to mobile devices (android)

You should start a new thread for your issue, as you are more likely to get help that way.

Dave

sure just did

1 Like

I did upgrade my selenium and robot framework version but still unable to execute the scripts
Getting the below error:
Setup failed:
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 117.0.5938.92 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

Can someone help on this if any one faced this

Hello everyone…!! Hope you’re having a great dayy…
I am facing the same issue and i tried upgrading the selenium version and robot framework version.

still i am observing below.

C:\Users\mayuchan>webdrivermanager chrome
Downloading WebDriver for browser: “chrome”
Error, unable to get version number for release 117.0.5938, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 117.0.5938, got code: 404
Error, unable to get version number for release 117.0.5938, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 117.0.5938, got code: 404
Error, unable to get version number for release 117.0.5938, got code: 404
Failed to parse compatible version: Error, unable to get version number for release 117.0.5938, got code: 404
Driver binary downloaded to: “C:\Users\mayuchan\AppData\Local\rasjani\WebDriverManager\chrome\114.0.5735.90\chromedriver_win32\chromedriver.exe”
Driver copied to: C:\Users\mayuchan\AppData\Local\rasjani\WebDriverManager\bin\chromedriver.exe
WARNING: Path “C:\Users\mayuchan\AppData\Local\rasjani\WebDriverManager\bin” is not in the PATH environment variable.

Highly appreciate if someone can help me on this… :slight_smile:

Hi Mayuri,

the github issue above hasn’t been resolved yet, you will probably need to find another way to install your chromedriver until webdrivermanager is fixed.

Dave.

1 Like

Thank you so much Dave for the information and for getting back to me on this :innocent:
I will try to work on this and i will try out some other way.
Thanks again :smiling_face: