【发布时间】:2016-07-25 23:28:33
【问题描述】:
我知道我的问题与this one 类似,但他尝试使用 Chrome,而我尝试使用 Firefox (47.0.1)。
所以基本上,我正在尝试使用 RSelenium。这是我的代码:
> library(RSelenium)
> checkForServer()
> startServer()
> mybrowser <- remoteDriver()
> mybrowser$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
我尝试删除并重新安装 RSelenium 包。我也试过this answer推荐的,没有结果。
提前致谢。
编辑 1:
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 LC_NUMERIC=C
[5] LC_TIME=French_France.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RSelenium_1.3.5 RJSONIO_1.3-0 RCurl_1.95-4.8 bitops_1.0-6 foreach_1.4.3 httr_1.2.0 XML_3.98-1.4
loaded via a namespace (and not attached):
[1] R6_2.1.2 tools_3.2.3 codetools_0.2-14 iterators_1.0.8 caTools_1.17.1
【问题讨论】:
-
你能发帖
sessionInfo()吗? -
完成,请参阅已编辑的问题。
-
可能是 java 问题。您是否测试过 R 与 Java 通信?
-
我该如何测试?
-
你能加载rJava包吗?我注意到虽然 RSelenium 没有明确使用它,但它可以是测试 R 和 Java 之间连接的好方法,尤其是在 Windows 上
标签: r firefox selenium-firefoxdriver rselenium