RSelenium:连接到服务器

时间:2020-04-30 19:19:32

标签: r selenium rselenium

这是我第一次接触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 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

但是这里有些问题,No encoding supplied: defaulting to UTF-8.是什么意思? 我怎么知道我是否正在运行独立服务器?!

0 个答案:

没有答案