Selenium 服务器无法启动

问题描述 投票:0回答:0

我更新了 R 然后我遇到了 rselenium 的问题

> system(paste0("kill $(lsof -i :4567 | grep LISTEN | awk '{print $2}')"))
sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
> rD <- rsDriver(chromever = Sys.getenv('CHROME_VERSION'), extraCapabilities = eCaps)
checking Selenium Server versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking chromedriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking geckodriver versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
checking phantomjs versions:
BEGIN: PREDOWNLOAD
BEGIN: DOWNLOAD
BEGIN: POSTDOWNLOAD
Error in wdman::selenium(port = port, verbose = verbose, version = version,  :
  Selenium server  couldn't be started

我尝试将

verbose = FALSE
放入 rsDriver 但没有成功

> system(paste0("kill $(lsof -i :4567 | grep LISTEN | awk '{print $2}')"))
sh: 1: kill: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
> rD <- rsDriver(verbose = FALSE, chromever = Sys.getenv('CHROME_VERSION'), extraCapabilities = eCaps)
Could not open chrome browser.
Client error message:
Undefined error in httr call. httr output: Failed to connect to localhost port 4567 after 0 ms: Connection refused
Check server log for further details.
Warning message:
In rsDriver(verbose = FALSE, chromever = Sys.getenv("CHROME_VERSION"),  :
  Could not determine server status.
r selenium-chromedriver rselenium
© www.soinside.com 2019 - 2024. All rights reserved.