Build a Python development environment (with Selenium automation deployment)

Source: Internet
Author: User

A, download Python2.7 from the Python website
https://www.python.org/
b, when installing Python2.7, select tick pip and Auto config environment variable (default python installation path C:\Python27), if environment variable is not automatically configured, manual configuration can also
C. After the Python and Pip installation is successful (enter Python under command line to enter Python interactive environment >>>),
Method of installing third-party module PIL pip install PIL prompt error because PIL official only supports 32-bit, no 64-bit version available
Can install unofficial module Pillow instead, pip install Pillow
Http://effbot.org/downloads#pil
Build Python+selenium Automation ******************************
D. Installing Selenium:pip install selenium via pip
or install python2.7 by downloading the package, installing the selenium version is 3.4.3

E, download the corresponding chrome version of Chromedriver from http://chromedriver.storage.googleapis.com/index.html and put it in the corresponding Chrome installation path: C:\Program Files (x86) \google\chrome\application
Add the path to the system environment variable path at the same time

Firefox driver is set up in a similar way, with download links
Https://github.com/mozilla/geckodriver/releases

Iedriverserver Download Link:
Https://selenium-release.storage.googleapis.com/index.html


IE needs to be set specifically:
Must be in the Security page of the IE option set, the 4 zones of the Enable protection mode check is removed (or all ticked), that is, to maintain four areas of the protection mode is consistent

For IE10 and higher versions, the enhanced protected mode must be removed in the Advanced page of the IE Options settings

The browser's scaling must be set to 100% so that element positioning does not occur.


Https://github.com/easonhan007/webdriver_guide/blob/master/README.md

Build a Python development environment (with Selenium automation deployment)

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.