I. Environmental construction
- The preparation tools are as follows: Download python "Python Development Environment" (http://python.org/getit/)
- Download Setuptools: "Python's Basic Package Tool" (Http://pypi.python.org/pypi/setuptools
- Download pip: "Python installation package management tool" (HTTPS://PYPI.PYTHON.ORG/PYPI/PIP)
Setuptools is a Python-based package tool that can help us easily download, build, install, upgrade, and uninstall Python packages
Pip is a Python software package installation and management tool, with this tool, we only need a command to be able to easily python any class library.
Windows Environment Installation:
Windows Environment Installation
The first step, the installation of Python development environment package, select the installation path to install, the author downloaded is the latest python2.7.5 version, the installation directory is: C:\Python27.
The second step, install Setuptools through the previous provided Setuptools connection, drag the page to the bottom to find, setuptools-1.3.2.tar.gz file (version will be updated with the time version), the file Unzip, locate the ez_install.py file, and go to the Windows command prompt (Start-run--cmd command, enter) under Execute ez_install.py:
C:\setuptools-1.3>python ez_install.py If you are prompted that Python is not an internal or external command! Don't worry, just add the python environment variable! Desktop My Computer Right-click Menu--Properties--advanced--environment variables--the Path in the system variable is:
Python Selenium automated Testing