Steps to Install and run headless chrome browser o

2020-05-21 06:55发布

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

3条回答
疯言疯语
2楼-- · 2020-05-21 07:33

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)
    
查看更多
走好不送
3楼-- · 2020-05-21 07:33

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/

查看更多
够拽才男人
4楼-- · 2020-05-21 07:57

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/

查看更多
登录 后发表回答