Selenium+python+eclipse Environment

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.