Install Chrome Driver and Firefox Driver on Ubuntu

Install Chrome Driver and Firefox Driver on Ubuntu

This article only introduces Chrome Driver (Firefox Driver is the same as this step)

Selenium chromedriver and Google Chrome version comparison table (download it against your own browser version)

chromedriver version Supported Chrome Versions
v2.35 v62-64
v2.34 v61-63
v2.33 v60-62
v2.32 v59-61
v2.31 v58-60
v2.30 v58-60
v2.29 v56-58
v2.28 v55-57
v2.27 v54-56
v2.26 v53-55
v2.25 v53-55
v2.24 v52-54
v2.23 v51-53
v2.22 v49-52
v2.21 v46-50
v2.20 v43-48
v2.19 v43-47
v2.18 v43-46
v2.17 v42-43
v2.13 v42-45
v2.15 v40-43

install unzip

 
sudo apt-get install unzip

  

Install the downloaded driver, my download is in the Downloads folder (the system is Ubuntu)

 
unzip ~/Downloads/chromedriver_linux64.zip -d ~/Downloads
chmod +x ~/Downloads/chromedriver
sudo mv -f ~/Downloads/chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver

 

At this point it has been installed and can be started with selenium

 

Pay attention to the public number:

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325042664&siteId=291194637