selenium + python automated test environment installation

1.1 Environmental combination
1.windows7 64 bit
2.Python 3.6.0
3.selenium 3.7.0
4.ChromeDriver 2.29.461591
5.Chrome V58
6. The mounting PyCharm

1.2 python installation
1.2.1 download the installation package (installation package I can send you directly)
official website Download: https: //www.python.org/57
install Python 3.6.0

 

1.2.2 Python installed, double-click fool install (not installed in c drive, English path, no spaces), when installed beneath the red check box, if this step is successful, this step can be omitted environment variables

 

 

1.2.3 Environment Variables
After the installation is complete, look at the directory D: \ python \ Scripts, and there is no pip.exe easy_install.exe (generally, if not have to uninstall reinstall a)
the D: \ python and D : \ python \ Scripts (Note that both paths are copied on your computer), added to the system variable path environment variable under
D: \ python; D: \ python \ Scripts; ( semicolon in English)

 

 

1.3 selenium install
  1.3.1 open cmd window input: pip

 

Enter cmd command-line installation to install the Selenium
> PIP install the Selenium
(Note: Be sure to install the first time to see the progress of 100% complete, if she fails, re-enter the installation instructions until you see 100% completed so far)

 

1.4 Chrome browser driver download
Chrome browser, you need to download the browser driver, the driver file into the root directory of the python
chromedriver version download Daquan:
http://chromedriver.storage.googleapis.com/index.html
see your chrome browser how much is the version number, and then download the corresponding driver.

 

1.5 pycharm installed
before writing the script, have to find a handy tool to write the script. python is an interpreted programming language, it is generally called a tool to write python interpreter. Write python scripts a lot of tools, small mention here, as long as they used to be easily, if you have not selected an interpreter, Xiao Bian here recommend pycharm.
    Pycharm first download the installation package, the installation package can go to the official web http://www.jetbrains.com/pycharm/ download the latest version, then that is a fool installation.

 

 

Guess you like

Origin www.cnblogs.com/huanglele1114/p/11797948.html