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

RSelenium and selenium > 4.8.3 #280

Open
fvalenduc opened this issue Aug 5, 2023 · 3 comments
Open

RSelenium and selenium > 4.8.3 #280

fvalenduc opened this issue Aug 5, 2023 · 3 comments

Comments

@fvalenduc
Copy link

RSelenium works fine with docker images up to selenium 4.8.3. However, it doesn't work anymore with selenium 4.9.0. The changelog says that support for the Json Wire protocol has been removed from selenium grid. Could it be the cause of the problem ?

remDr$open() doens't work and hangs for around 30 seconds and then returns this:

remDr$open()
[1] "Connecting to remote server"
$id
[1] NA

Is the removal of the json wire protocol indeed the cause of the problem ? If so, are there plans to make RSelenium compatible with newer versions of selenium ?

@taiyodayo
Copy link

I think you are correct.
Selenium4 series dropped support for json wire protocol completely, and currently RSelenium only works with json wire protocol.
Selenium 4 partly works, like 'remDr$open()' works but 'remDr$closeall()' does not.
I don't think there is a plan to implement the newer webdriver protocol in RSelenium.

I wonder what alternatives there are for RSelenium, if any.
It has been working amazingly well and stable for me for many years.

@fvalenduc fvalenduc reopened this Sep 12, 2023
@fvalenduc
Copy link
Author

Well, there is chromote (https://github.com/rstudio/chromote and https://cran.r-project.org/web/packages/chromote/index.html) which uses the ChromeDevTools protocol. Off course this will only work with chrome. I didn't find an alternative for firefox yet, beside switching to Python.

@ashbythorpe
Copy link

I recently made an RSelenium alternative that works with Selenium 4:
https://ashbythorpe.github.io/selenium-r/

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

No branches or pull requests

3 participants