我知道我的問題類似於this one,但他試圖在使用Firefox時嘗試使用Firefox(47.0.1)。RSelenium不能與火狐工作
所以基本上,我試圖使用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()'嗎? – Stedy
完成,看編輯的問題。 –
可能是一個java問題。你測試過R與Java通信嗎? – Stedy