安装Chrome
cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
EOF
查看Chrome版本
google-chrome --version
下载chromedriver
https://npm.taobao.org/mirrors/chromedriver/
将chromedriver放到/usr/local/bin目录下
赋权
chmod +x /usr/local/bin/chromedriver