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) 我的操作系统是 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)