使用 Chrome 驱动程序在 centos 6.5 上安装和运行无头 Chrome 浏览器的步骤 [英] Steps to Install and run headless chrome browser on centos 6.5 using chrome driver
问题描述
我需要在 centos 6.5 上安装 chrome 浏览器,这里我需要自动化一些 web gui.我已经安装了 chrome 驱动程序.任何人都可以提供chrome-61的步骤和下载链接以及如何安装它.我的操作系统没有任何 Gui.请提供命令.
I need to install chrome browser on centos 6.5, Here i need to automate some web gui. I have installed chrome driver. Can anyone please provide the steps and download link of chrome-61 and how to install it. My operating system does not have any Gui. Kindly provide the commands.
我正在使用 java selenium.
I am using java selenium.
提前致谢
推荐答案
遗憾的是,Google Chrome 不再支持 6.x.你需要 CentOS 7.x.
Sadly, Google Chrome no longer supports 6.x. You need CentOS 7.x.
我使用 Cent-OS 7.4.* 并且运行良好.
I used Cent-OS 7.4.* and it worked fine.
以下是要遵循的步骤:
下载 chromedriver:登录 Linux 机器并执行以下命令:
Download chromedriver: login to Linux machine and execute these commands:
$ wget https://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ chromedriver --version
ChromeDriver 2.40.565383
确保您始终安装最新版本!
Make sure you're always installing the latest version!
下载 Chrome 浏览器
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
$ sudo yum install google-chrome-stable_current_x86_64.rpm
$ google-chrome --version
Google Chrome 67.0.3396.87
$ yum install Xvfb
$ ps -ef | grep Xvfb
username 12988 1 0 Oct05 ? 00:00:02 Xvfb :99 -screen 0 1152x900x8
$ yum install maven
$ mvn -version
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
这篇关于使用 Chrome 驱动程序在 centos 6.5 上安装和运行无头 Chrome 浏览器的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!