python Language,selenium Automation environment construction
1. Installationselenium, choose one of the two ways to install
1.1 UseDOS Command to enterpython installation directory, span>and then executepip install -U selenium Network installation
Selenium
2.1 download the installation package first https://pypi.python.org/pypi/selenium#downloads,After downloading, unzip the directory,
then use cmd < span style="font-family: 宋体;">Enter the unzipped directory and use the commandPython setup.py install InstallSelenium
2. Create a new project and install it through the installation package management interface of pycharm
3. CheckFirefox、Google Chrome The driver version corresponding to the browser version,
The latest version for Google and Firefox IE The version remains unchanged span>
4. Download the corresponding driver and put it in python Installation directoryC:\Python36 or the browser corresponding installation Directory
Browser Drive Google(chromedriver.exe) Firefox(geckodriver.exe) IE(IEDriverServer.exe)
5 create a new one Empty project script and enter the corresponding code
6. Enter the specified page to complete