An apple a day keeps the doctor away !

0%

centOS7 安装 selenium

centos7安装selenium

环境:centos7,python3,selenium,Chrome内核

1.安装python3

1
yum install python3

2.安装selenium

1
pip3 install selenium

3.安装chrome浏览器

1
2
3
yum update glib2 -y
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm --no-check-certificate
yum install -y google-chrome-stable_current_x86_64.rpm

4.下载chromedriver内核

1
wget http://chromedriver.storage.googleapis.com/2.43/chromedriver_linux64.zip

5.解压此文件,并将文件移动到/usr/bin目录下

1
2
unzip chromedriver_linux64.zip
mv chromedriver /usr/bin/

6.测试selenium是否可用

以上