我運行的基礎上,RSelenium Basics CRAN page以下腳本:RSelenium不明錯誤 - java.lang.IllegalStateException與谷歌瀏覽
library(RSelenium)
startServer(args = c("-port 4455"), log = FALSE, invisible = FALSE)
remDr <- remoteDriver(browserName = "chrome")
remDr$open()
這將產生以下錯誤:
Exception in thread "main" java.net.BindException: Selenium is already running on port 4444. Or some other service is.
at org.openqa.selenium.server.SeleniumServer.start(SeleniumServer.java:492)
at org.openqa.selenium.server.SeleniumServer.boot(SeleniumServer.java:305)
at org.openqa.selenium.server.SeleniumServer.main(SeleniumServer.java:245)
at org.openqa.grid.selenium.GridLauncher.main(GridLauncher.java:64)
基於從評論this conversation on GitHub,我修改了我的startServer()
命令,如下所示:
startServer(args = c("-port 4455"), log = FALSE, invisible = FALSE)
然後我收到我的控制檯以下錯誤:
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
class: java.lang.IllegalStateException
而這個錯誤在彈出的提示的Java:
14:38:55.098 INFO - Launching a standalone Selenium Server
14:38:55:161 INFO - Java: Oracle Corporation 25.40-b25
14:38:55.161 INFO - OS: Windows 7 6.1 amd64
14:38:55.161 INFO - v2.46.0, with Core v2.46.0. Built from revision 87c69e2
14:38:55.209 INFO - Driver class not found: com.opera.core.systems.OperaDriver
14:38:55.209 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
14:38:55:289 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4455/wd/hub
14:38:55:289 INFO - Selenium Server is up and running
我不知道如果缺乏一個Opera司機是一個實際的錯誤或只是一個警告。無論如何,我想使用Chrome,所以它看起來應該不重要。我究竟做錯了什麼?
你有chromedriver ACCES從你PATH的某個地方出來。 https://sites.google.com/a/chromium.org/chromedriver/ – jdharrison