seleniumPipes icon indicating copy to clipboard operation
seleniumPipes copied to clipboard

Driver id is not registered

Open xuefliang opened this issue 7 years ago • 6 comments

When i use remDr %>% go("https://cloud.r-project.org/") %>% getPageSource() ,I meet Driver id is not registered. Has the session been deleted? Alternatively no session exists: Run remoteRd with newSession = TRUE or run newSession() Error in queryDriver(verb = POST, url = build_url(pathURL), source = "go", : sessionId error

xuefliang avatar Aug 17 '18 06:08 xuefliang

Hi John,

I like your project and using it. I hope you will continue to support it.

I encountered the same error as above. Below is the code to compare running using chrome vs firefox. The problem is with firefox. I tried other version of firefox also same problem.

library(seleniumPipes)

# Run Docker in windows 10
system("docker ps")

# Use the following commands when starting it first time with named container
# system("docker run --name chrome_server  --detach --publish 4445:4444 --publish 5901:5900 selenium/standalone-chrome-debug")
# system("docker run --name firefox_server --detach --publish 4446:4444 --publish 5902:5900 selenium/standalone-firefox-debug")

# Use the commands below when starting it again
system("docker start chrome_server")
system("docker start firefox_server")

Sys.sleep(5)

chrome_dr <- remoteDr(
  port = 4445L,
  browserName = "chrome"
)
chrome_dr
#> Remote Ip Address: http://localhost:4445/wd/hub 
#> Remote sessionId: 6fcaed1f49f40cbbd05616942d60279e

firefox_dr <- remoteDr(
  port = 4446L,
  browserName = "firefox"
) 
firefox_dr
#> Remote Ip Address: http://localhost:4446/wd/hub 
#> Remote sessionId: 622cb99e-4602-4776-af78-124bd3a90386

# SessionId is acquired for both servers

chrome_dr %>% 
  go("http://www.google.com/ncr")

chrome_dr
#> Remote Ip Address: http://localhost:4445/wd/hub 
#> Remote sessionId: 6fcaed1f49f40cbbd05616942d60279e

# SessionId in chrome persisted

firefox_dr %>% 
  go("http://www.google.com/ncr")

firefox_dr
#> Remote Ip Address: http://localhost:4446/wd/hub 
#> Remote sessionId:

# SessionId in firefox server disappears

system("docker stop chrome_server")
system("docker stop firefox_server")

Created on 2019-04-03 by the reprex package (v0.2.1)

hermandr avatar Apr 03 '19 04:04 hermandr

Same issue here.. is there any update?

captcoma avatar Apr 10 '19 19:04 captcoma

Same here. Does it seem there is no fix for now?

smuotoe avatar Jun 30 '19 08:06 smuotoe

Same issue for Chrome on my Windows machine. Any update @johndharrison ?

mik3y64 avatar Dec 16 '19 00:12 mik3y64

I'm also having this issue.

systemnova avatar Apr 21 '22 03:04 systemnova

Having the same issue. ANy update?

bharath-cchmc avatar Jul 19 '22 17:07 bharath-cchmc