Because I installed the automated test environment, encountered a lot of problems, I tidied up the installation steps, thanks to those who helped me.
1. Install Python, I installed the 3.5 version, the network also has a lot of installation steps, as you can (in fact, the next step is OK)
I don't know, please. Poke: https://www.python.org/downloads/
2. Install IDE Pycharm (language environment Choose Python Activation code can Baidu, also can choose 30 days trial)
Can be stamped: http://www.jetbrains.com/pycharm/
3. Install Pip
A. Look at the current computer installed Python no, under cmd (if an error is required to check whether the Python installation is correct or environment variable configuration)
B. The previous Python installation is fine, see if there are two files in this directory (depending on your computer's Python installation path)
C. Go to cmd, and then switch the directory to the script folder under the Python installation directory to run Easy_install.exe pip
D. See if PIP is installed
In cmd, switch directory to Python's installation directory under the Script folder, execute PIP (error to see if the path is correct)
E. Configuring the PIP environment variable
1. Add Environment variables:
2. Add the System environment variable path:
4. Install Selenium (install with PIP)
Execute pip install selenium==2.53.6 under cmd
*. To install additional third-party libraries, you can also use the PIP installation format: Pip install third-party library name (equal sign = indicates the specified version)
5. Installing Chromedriver
In cmd pip install-i https://pypi.tuna.tsinghua.edu.cn/simple chromedriver
6. Under the Python installation directory (image reference)
Modify the name of this file chromedriver-windows to Chromedriver.exe
Thanks to this blogger: http://blog.csdn.net/lambert310/article/details/52412059 change pip source to domestic mirror, significantly increase download speed
Install browser driver due to version and so ask you the wrong question for a long time, see the post, installation success
(often when using Python to install a variety of modules, and Pip is a very powerful module installation tools, but because the foreign official pypi is often the wall, resulting in unavailability, so we'd better be the PIP source we use to replace it, This will be able to solve the wall caused by the trouble of loading the library. )
As an automated small rookie, just start learning automation, there are many wrong places welcome you to correct, there are infringement and other acts please contact me, received will be the first time to deal with, thank you.
Python+selenium Automated test Environment installation