Steps to Install and run headless chrome browser on centos 6.5 using chrome driver

我怕爱的太早我们不能终老 提交于 2020-02-17 13:33:42

问题


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.

I am using java selenium.

Thanks in advance


回答1:


Sadly, Google Chrome no longer supports 6.x. You need CentOS 7.x.

I used Cent-OS 7.4.* and it worked fine.

These are the steps to follow:

  • 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!

  • Download Chromebrowser

    $ 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)
    



回答2:


This is the guide to install Google Chrome on CentOS 6. Big thanks to the guys at Intoli.com!

It also works for Amazon Linux and Red Hat Enterprise Linux.

https://intoli.com/blog/installing-google-chrome-on-centos/




回答3:


Actually , There is a way to run both chrome and chromedriver on amazon linux, centos 6.x and rhel. basic idea to use libs from a newer os.

See the fully automated script here https://github.com/staier/chromedriver-centos6-installation

This one adds chromedriver installation to the script from the article:https://intoli.com/blog/installing-google-chrome-on-centos/



来源:https://stackoverflow.com/questions/46109812/steps-to-install-and-run-headless-chrome-browser-on-centos-6-5-using-chrome-driv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!