【问题标题】:RSelenium with chromedriver 2.20 on Ubuntu 14.04 webdriver exceptionRSelenium 在 Ubuntu 14.04 webdriver 异常上使用 chromedriver 2.20
【发布时间】:2016-01-18 18:23:31
【问题描述】:

我已经在我的 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

【问题讨论】:

  • 我需要 Xvfb :1 -screen 5 1024x768x8 & ???

标签: r selenium-chromedriver rselenium


【解决方案1】:

解决方法是手动调用 Selenium 服务器,带 DISPLAY 参数。

command <- "DISPLAY=:1 xvfb-run java -jar /usr/local/lib/R/site-library/RSelenium/bin/selenium-server-standalone.jar &"
system(command, intern = FALSE)

【讨论】:

    猜你喜欢
    • 2019-06-12
    • 1970-01-01
    • 1970-01-01
    • 2016-02-14
    • 1970-01-01
    • 2012-04-28
    • 2016-09-29
    • 1970-01-01
    • 2018-04-06
    相关资源
    最近更新 更多