The first chapter, Python + Selenium Web automated testing environment to build

First, install Python

I suggest that you install the stable version Python3.7 or Python3.8 Python3 the
official website download link: https://www.python.org/

Second, the installation Selenium

Under cmd environment, enter: pip install selenium
Here Insert Picture Description
Here Insert Picture Description

Second, the installation PyCharm

If only automatic download Community Edition is like. However, it is recommended that you go to download the Professional Edition, after all, the professional version of the function is very large, crack tutorial Baidu, there are many.
Download the official website link: https://www.jetbrains.com/pycharm/download/#section=windows

Third, the browser driver download

To start the corresponding browser must have its driver, the latest driver version corresponds to the latest browser version.
note! ! ! Drive version must correspond to the version of the browser on your computer! ! !

Download the drivers to extract the python executable directory can be.
Here Insert Picture Description

chromedriver (Chrome Google drive)
http://chromedriver.storage.googleapis.com/index.html or http://npm.taobao.org/mirrors/chromedriver/

geckodriver (Firefox Firefox drive)
https://github.com/mozilla/geckodriver/releases

MicrosoftWebDriver (edge drive)
http://go.microsoft.com/fwlink/?LinkId=619687

IEDriverServer.exe (IE drive)
http://selenium-release.storage.googleapis.com/index.html

Welcome to join the software testing exchange group: 853 365 664

Released six original articles · won praise 5 · Views 1088

Guess you like

Origin blog.csdn.net/weixin_44988085/article/details/104430247