I'm having a difficult time getting RSelenium
to work with my ChromeDriver
in R v4.1.2. Initially, I installed the ChromeDriver v97
because I had Chrome v97 running on my Mac as my browser. However, despite installing the v97 ChromeDriver
, I would get an error every time that read
Selenium message:session not created: This version of ChromeDriver only supports Chrome version 98
So I did some research and everything I read said I could either upgrade Google Chrome or downgrade my driver. I tried both. I uninstalled the driver and installed an earlier version (v96
) but it still gave me the exact same error. Then I tried upgrading my Chrome browser, but it said it was up to date and that no upgrade was available. So I just figured I'd wait until v98
was ready to install. As soon as v98
was out, I upgraded my browser to Chrome v98
and Selenium
with the ChromeDriver
ran smoothly without issues. I haven't changed anything since. It ran for a couple of days, but now, all of a sudden, I'm getting the error again but now it says
"This version of ChromeDriver only supports Chrome version 99"
But I have not upgraded my ChromeDriver
since installing the v97
driver. It seems as though the driver must have some code in it that checks what the most current version of Chrome is (even if that is a Beta release) and requires that I have it, regardless of which driver or browser I have installed. Has anyone come across this issue before? Any idea of how I can resolve this? I cannot upgrade to v99
, it's not available yet, and uninstalling my ChromeDriver
and reinstalling a previous version doesn't seem to do anything either.
Thank you in advance.
To know the chrome version use,
binman::list_versions("chromedriver")
$win32
[1] "85.0.4183.87" "86.0.4240.22" "87.0.4280.20" "87.0.4280.88" "88.0.4324.27" "91.0.4472.101" "91.0.4472.19" "92.0.4515.107" "92.0.4515.43"
Then you can try the versions which works for you,
library(RSelenium)
driver <- rsDriver(browser = "chrome",port = 9537L, chromever = "96.0.4664.45")
or else you can use firefox,
driver = rsDriver(port = 4841L, browser = c("firefox"))