Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
RSelenium:连接到服务器_R_Selenium_Rselenium - Fatal编程技术网

RSelenium:连接到服务器

RSelenium:连接到服务器,r,selenium,rselenium,R,Selenium,Rselenium,这是我第一次使用硒。checkForServer()命令不起作用 checkForServer() 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

这是我第一次使用硒。
checkForServer()
命令不起作用

checkForServer()
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.
正如它所建议的,我已经尝试了
rsDriver

library(RSelenium)
> rD1 <- rsDriver(browser = "chrome", port = 3987L)
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
No encoding supplied: defaulting to UTF-8.
[1] "Connecting to remote server"
No encoding supplied: defaulting to UTF-8.
$id
[1] NA
库(RSelenium)

>rD1您应该尝试使用:
library(RSelenium)驱动程序相同的问题,有解决方案吗?