First, let's talk about the Selenium+python building.
1. Install Python
:Http://www.python.org/ftp/python/2.7.2/python-2.7.2.msi
Click Install after download
Set environment variables after installation: Computer-System Properties-Advanced system settings-environment variables, add Python's installation directory after the system variable path. My side is the default directory that is C:\Python27;
2. Install Python's Setuptools
: Http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe#md5=57e1e64f6b7c7f1d2eddfc9746bbaf20
After downloading, click Install directly
3. Install Python 's package management tool pip
Open DOS interface, switch directory #cd C:\Python27\Scripts, enter easy_install pip Click Enter, install it
4. Install the selenium-based Python package
Open the DOS interface, switch directory #cd C:\Python27\Scripts, enter pip install selenium click Enter to install
5. Verification
Write a program in Notepad and rename it to test.py
Click Run to see if you can open the browser
6.python Development Environment Configuration -eclipse-pydev plug-in installation
I'm using a relatively simple on-line installation here
After you click OK, select Pydev-eclipse under Pydev. Click OK, then step through the installation
7. Add Pydev Interpreter
Write the name of the interpreter in the Name field and the address of the Python application below. Click OK after this is the case
The options that pop up after that are all selected.
8. Verification
and then new.
In the module file, enter:
Can be run
Selenium+python+eclipse Environment