install selenium,chrome,ChromeDriver on Aliyun CentOS ECS

  1. install selenium 

1
yum install selenium

2. install chrome  

1
2
yum install epel-release
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

3.install ChromeDriver 

  3.1 check chrome version  

1
2
google-chrome-stable --version
Google Chrome 102.0.5005.115

  3.2 download the ChromeDriver match the chrome and install it 

   go to the taobao mirror page https://npm.taobao.org/mirrors/chromedriver/

1
2
3
4
5
6
7
wget 
 
unzip chromedirver_linux64.zip  
 
mv chromedriver /usr/bin/
 
chmod 777 /usr/bin/chromedriver

3.3 check ChromeDriver  Version

1
chromedriver -v


Adam博客
请先登录后发表评论
  • 最新评论
  • 总共0条评论
  • Powered by bjyblog modified by Adam © 2014-2025 www.lixiaopeng.com 版权所有 ICP证:鲁ICP备15039297号
  • 联系邮箱:14846869@qq.com