window
https://googlechromelabs.github.io/chrome-for-testing/
注意:选择与操作系统相对应的版本进行下载,并且与谷歌安装目录安装在同一位置,注意http status要为200才是正常可用。
下载放置到Chrome安装目录
环境1:
配置环境变量:
右键点击我的电脑/此电脑->右键点击属性->关于->点击高级系统设置->环境变量->系统变量。 右键点击“此电脑”图标,选择属性,选择高级系统设置
环境2:
D:\Program Files\Python\Python311
centos
selenium
pip install selenium
安装chrome-browser
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm --no-check-certificate
sudo yum install google-chrome-stable_current_x86_64.rpm
安装chromedriver
sudo yum install chromedriver