Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 14.04 webdriver上的chromedriver 2.20版本的RSelenium异常_R_Selenium Chromedriver_Rselenium - Fatal编程技术网

Ubuntu 14.04 webdriver上的chromedriver 2.20版本的RSelenium异常

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

我已经在我的linux服务器上安装了chromedriver,它正在运行

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&???