在java环境已经设置好的情况下,chromedriver也放在了chrome的相应文件夹中了,运行此代码
ibrary(RSelenium)
remDr<-remoteDriverbrowserName="chrome",remoteServerAddr="localhost",port=4444L)
remDr$open()
它可以帮我打开chrome,但无法进行下一步输入网址的操作。返回以下结果
**[1] "Connecting to remote server"
Selenium message:Cannot define class using reflection
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
Further Details: run errorDetails method**
如果输入网址信息
url <- "http://www.google.com"
remDr$navigate(url)
则返回:
Error in checkError(res) :
Undefined error in httr call. httr output: length(url) == 1 is not TRUE
感谢各位大神能帮忙。已经研究一晚上了…