Ubuntu 14.04 webdriver上的chromedriver 2.20版本的RSelenium异常
我已经在我的linux服务器上安装了chromedriver,它正在运行Ubuntu 14.04 webdriver上的chromedriver 2.20版本的RSelenium异常,r,selenium-chromedriver,rselenium,R,Selenium Chromedriver,Rselenium,我已经在我的linux服务器上安装了chromedriver,它正在运行 Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 9515 Only local connections are allowed. R抛出一个错误: > startServer(args = c("-port 4444")) > remDr = remoteDriver(remoteServ
Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 9515
Only local connections are allowed.
R抛出一个错误:
> startServer(args = c("-port 4444"))
> remDr = remoteDriver(remoteServerAddr = "localhost", port = 4444, browserName = "chrome")
> 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
解决方案是使用DISPLAY参数手动调用Selenium服务器
command <- "DISPLAY=:1 xvfb-run java -jar /usr/local/lib/R/site-library/RSelenium/bin/selenium-server-standalone.jar &"
system(command, intern = FALSE)
command解决方案是使用DISPLAY参数手动调用Selenium服务器
command <- "DISPLAY=:1 xvfb-run java -jar /usr/local/lib/R/site-library/RSelenium/bin/selenium-server-standalone.jar &"
system(command, intern = FALSE)
命令我是否需要Xvfb:1-屏幕5 1024x768x8&?我是否需要Xvfb:1-屏幕5 1024x768x8&???