相关疑难解决方法(0)

无法执行rsDriver(连接被拒绝)

R selenium无法到达任何地方.这是第一步和我的输出:

library(RSelenium)
rD <- rsDriver()
# checking Selenium Server versions:
#   BEGIN: PREDOWNLOAD
# BEGIN: DOWNLOAD
# BEGIN: POSTDOWNLOAD
# checking chromedriver versions:
#   BEGIN: PREDOWNLOAD
# BEGIN: DOWNLOAD
# BEGIN: POSTDOWNLOAD
# checking geckodriver versions:
#   BEGIN: PREDOWNLOAD
# BEGIN: DOWNLOAD
# BEGIN: POSTDOWNLOAD
# checking phantomjs versions:
#   BEGIN: PREDOWNLOAD
# BEGIN: DOWNLOAD
# BEGIN: POSTDOWNLOAD
# [1] "Connecting to remote server"
# Error in checkError(res) : 
#   Undefined error in httr call. httr output: Failed to …
Run Code Online (Sandbox Code Playgroud)

r docker rselenium

9
推荐指数
2
解决办法
1万
查看次数

RSelenium 通过 docker

我的操作系统是 Windows 8.1,我有 R 的 3.3.3 版。

我已经安装了 RSelenium 软件包,并尝试使用它来运行它:

library("RSelenium")
#start RSelenium server
startServer()
checkForServer()
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

Error: checkForServer is now defunct. Users in future can find the function in 
file.path(find.package("RSelenium"), "examples/serverUtils"). The
recommended way to run a selenium server is via Docker. Alternatively
see the RSelenium::rsDriver function.
Run Code Online (Sandbox Code Playgroud)

RSelenium 打开的方式有什么变化吗?我搜索错误,我只找到了这个,但这对我没有帮助。我能做什么?

我尝试的另一种方法是从这里下载 chromedrive ' https://sites.google.com/a/chromium.org/chromedriver/downloads '

并使用此脚本: require(RSelenium) cprof <- getChromeProfile("C:/Users/Peri/Desktop/chromedriver/chromedriver.exe", "Profile 1")

require(RSelenium)
remDr <- remoteDriver(remoteServerAddr = "localhost" 
                      , port = 4444
                      , browserName = "chrome", extraCapabilities = …
Run Code Online (Sandbox Code Playgroud)

selenium r rselenium

5
推荐指数
1
解决办法
6883
查看次数

标签 统计

r ×2

rselenium ×2

docker ×1

selenium ×1