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

Driver id is not registered #23

Open
xuefliang opened this issue Aug 17, 2018 · 6 comments
Open

Driver id is not registered #23

xuefliang opened this issue Aug 17, 2018 · 6 comments

Comments

@xuefliang
Copy link

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

@hermandr
Copy link

hermandr commented Apr 3, 2019

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)

@captcoma
Copy link

Same issue here.. is there any update?

@smuotoe
Copy link

smuotoe commented Jun 30, 2019

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

@mik3y64
Copy link

mik3y64 commented Dec 16, 2019

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

@systemnova
Copy link

I'm also having this issue.

@bharath-cchmc
Copy link

Having the same issue. ANy update?

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

7 participants