centos chromedriver and chrome-google

Message: session not created: This version of ChromeDriver only supports Chrome

Message: session not created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 93.0.4577.63 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

http://chromedriver.storage.googleapis.com/index.html
下载对应的chromedriver版本。

错误 :'chromedriver' executable needs to be in PATH.

DeprecationWarning: use options instead of chrome_options
driver = webdriver.Chrome(executable_path="/bin/chromedriver", chrome_options=options)
Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

centos 安装google-chrome

yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

安装 chromedriver

https://npm.taobao.org/mirrors/chromedriver/93.0.4577.15/
wget https://npm.taobao.org/mirrors/chromedriver/93.0.4577.15/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
which chromedriver
mv ./chromedriver /usr/bin/chromedriver
ln -s /usr/bin/chromedriver /bin/chromedriver

你可能感兴趣的:(centos chromedriver and chrome-google)