Giter Club home page Giter Club logo

Comments (2)

ashbythorpe avatar ashbythorpe commented on July 30, 2024 1

RSelenium does not work with the latest version of Selenium (see #280). Either:

  1. Use an older version of Selenium (e.g. docker run -d -p 4444:4444 -p 7900:7900 --shm-size="2g" selenium/standalone-firefox:4.8.3). You might have to experiment to find a version that RSelenium is compatible with.
  2. Use the newer selenium package, that works with the latest version of Selenium.

from rselenium.

JoeFernando avatar JoeFernando commented on July 30, 2024

Same issue on my side. Not able to go via docker. using windows 10 machine. have sought help on stackoverflow: https://stackoverflow.com/questions/77498684/rselenuim-docker-unable-to-connect-to-remote-server-for-firefox

 system("docker run -d -p 4449:4444 selenium/standalone-firefox")

library(RSelenium)

remDr <- remoteDriver(remoteServerAddr = "localhost", 
                      port = 4445L, 
                      browserName = "firefox"
                      )
remDr$open(silent = FALSE)
[1] "Connecting to remote server"
Error in checkError(res) : 
  Undefined error in httr call. httr output: Failed to connect to localhost port 4445 after 2252 ms: Couldn't connect to server

sessioninfo()


sessionInfo()
R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default


locale:
[1] LC_COLLATE=English_Australia.utf8  LC_CTYPE=English_Australia.utf8   
[3] LC_MONETARY=English_Australia.utf8 LC_NUMERIC=C                      
[5] LC_TIME=English_Australia.utf8    

time zone: Australia/Sydney
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] RSelenium_1.7.9

loaded via a namespace (and not attached):
 [1] wdman_0.2.6      assertthat_0.2.1 R6_2.5.1         rappdirs_0.3.3   netstat_0.1.2   
 [6] ps_1.7.5         bitops_1.0-7     xml2_1.3.5       processx_3.8.2   caTools_1.18.2  
[11] binman_0.1.3     compiler_4.3.2   httr_1.4.7       rstudioapi_0.14  tools_4.3.2     
[16] curl_5.1.0       Rcpp_1.0.11      yaml_2.3.7       jsonlite_1.8.7   semver_0.2.0    

Any help to resolve issue is much appreciated.

from rselenium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.