Reptile start selenium- install Google Chrome and drive (fool tutorial) under linux

A. Upgrading yum (not to prevent trouble)

yum update -y
yum -y groupinstall "Development tools"
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel psmisc libffi-devel

II. Configuring Google browser installed

first step

vim /etc/yum.repos.d/google-chrome.repo

The second step

#按i进入编辑模式粘贴内容
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
#:wq保存退出

third step

yum -y install google-chrome-beta.x86_64 --nogpgcheck
#你也可以查看你的版本yum list | grep chrome
#安装是否成功查询
#google-chrome --version

III. Install the driver

Go to the official website to download Driver: https://sites.google.com/a/chromium.org/chromedriver/downloads

As upload/usr/local/bin/文件目录

Given permission tochmod 777 /usr/local/bin/chromedriver

Guess you like

Origin www.cnblogs.com/pythonywy/p/12533925.html