ubuntu configures Selenium+Chrome+Python3 to achieve automated testing

1. Install chrome

sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb

If the above runs

sudo dpkg -i google-chrome*.deb Report an error after the command

Errors were encountered while processing:

Use the following command to fix it:

sudo apt-get install -f

Then run the following command again.

sudo dpkg -i google-chrome*.deb

Check the installed version of google

google-chrome --version

2. Install chromedriver

 

Reference link:

https://cloud.tencent.com/developer/article/1543285

Guess you like

Origin blog.csdn.net/Candyys/article/details/111667584