Environment buiding
一、Python
1. Download and install the python2.7.13(Note: It's best not to install in the C driver):
https://www.python.org/57
2. Confiugre the Environment Variables:
The path of python and python scripts
二、Selenium
1. open the cmd window, and enter the command to install the selenium2.53.6: pip install selenium==2.53.6
2. Run the Selenium to validate
>python
>from selenium import webdriver
>webdriver.Chrome()
Note: You should download the chrome driver, and put it in the path of python.
iedriver download:
http://selenium-release.storage.googleapis.com/index.html
chromedriver download:
http://chromedriver.storage.googleapis.com/index.html
三、Pycharm
1.Download path: http://www.jetbrains.com/pycharm/
2. Software crack method(The third method):
Refer to : http://www.cnblogs.com/yoyoketang/p/6115825.html
1 from selenium import webdriver 2 driver = webdriver.Ie() 3 driver.get("http://www.baidu.com")