【问题标题】:Install chrome browser on Linux Server在 Linux 服务器上安装 chrome 浏览器
【发布时间】:2019-02-02 13:17:11
【问题描述】:

我在 Jenkins 中遇到了一个在远程 Linux 服务器上运行的 selenium 自动化测试的问题。我认为这只是该远程系统上没有 chrome 浏览器的问题。所以,我的问题是:如何在远程 Linux 服务器上安装 Chrome?任何意见,将不胜感激。

【问题讨论】:

  • 你用的是哪个版本的linux??
  • 你能登录到运行 Selenium 测试的远程 Linux 服务器的桌面吗?
  • 我只知道系统是amd64。 4.14 32-coreos.@rohitthomas
  • 我不这么认为,因为我没有登录远程桌面的身份验证,我所能做的就是在Jenkins中执行shell。@AndrewGray
  • 远程服务器可能没有桌面 - 与 Windows 不同,这对于 Linux 服务器是正常的。您应该联系该服务器的管理员为您安装它。之后,您还需要更改测试以在无头模式下运行。

标签: node.js linux selenium jenkins selenium-webdriver


【解决方案1】:

这应该可以让您通过终端安装 chrome:

sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb

【讨论】:

  • 我已经尝试过你提到的方法。但是我好像没有超级用户认证,我会咨询负责人的。无论如何,谢谢你的回答。 @cannerwagon
猜你喜欢
  • 2014-01-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-11-17
  • 2013-02-18
相关资源
最近更新 更多