RSelenium与幻像错误

时间:2015-08-19 22:40:46

标签: r selenium-webdriver phantomjs rselenium

我正在运行以下代码并收到错误,我不知道如何解决:

require(RSelenium)
startServer()
pJS <- phantom()
remDr <- remoteDriver(browserName = "phantom")
remDr$open()
[1] "Connecting to remote server"
Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     class: org.openqa.selenium.WebDriverException

但是,当我使用“phantomjs”运行以下代码时,运行正常:

require(RSelenium)
startServer()
pJS <- phantom()
remDr <- remoteDriver(browserName = "phantomjs")
remDr$open()
remDr$close()

我在这里做错了什么?

0 个答案:

没有答案