0

I have a problem when I run simple RSelenium code through Docker with the selenium/standalone-chrome container. Half the time the code crashes and does not work due to an unknown error in R that I believe it just a time out. I also have to restart the container every time for the code to run. Is it a problem with my Mac, do I need more space, or does premium docker not have this issue?

'library("RSelenium")


# Connect to the Selenium server
remDr <- remoteDriver(port = 4445L, 
                  browserName = "chrome",
                  (remoteServerAddr = "localhost"),
                  version = "110.0.5481.177")
remDr$open()

remDr$navigate("https://www.ebay.com/")

remDr$findElement(using = "link text", "Electronics")

electronics_object <- remDr$findElement(using = "link text", "Electronics")

electronics_object$getElementAttribute("href")'

Here is my code, it returns the correct element about half the time, otherwise it times out.

grant
  • 1

0 Answers0