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
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
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:
$ 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
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
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.
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
[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.
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
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.
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.
Thank you so much Dave for the information and for getting back to me on this
I will try to work on this and i will try out some other way.
Thanks again
Hi there,
I am using Chrome browser Version 117.0.5938.150 and Selenium Version: 4.12.0. but the “Open Browser” keyword has failed with the error, NoSuchDriverException: Message: Unable to obtain driver for chrome using Selenium Manager. and is failing to launch the browser instance.
is anyone else facing the same issue? or is anyone aware on ETAs on when webdrivermanager issue would be resolved?
I already had the 114 chromedriver on my machine, so I found where webdrivermanager had installed it, saw that it was in a 114 directory, I created a 117 directory in the same location and downloaded the latest chrome driver (117) and copied it to that folder, then manually I unlinked the symolic link for the 114 version and updated the symolic link to the one in the 117 directory.
I’m on Linux, so what you need to do to update manually on your os will vary.
There’s been no update to the webdrivermanager issue linked above to indicate that a fix is even been worked on, though there has been some discussion about work around in that issue, so as far as I know there’s no ETA unfortunately.