Selenium + Python deployment automation test environment

Source: Internet
Author: User
Choosing Selenium and Python is really selfish: code two lines of Python, familiar with familiarity. Selenium has many advantages, and what I value most is support for multiple languages, simple enough, and support for browsers. Practical work, simple and practical really important, who do not want to see a big piece of documents, and then see a bunch of twisted into the code. Enterprises want is efficiency and credit, elbow grease is not able to get through the leadership. Elbow grease more, technology again advanced, forcing lattice again high, also not as simple and brutal to create benefits come true! Here's a record of the environment deployment process 1. Download Python first, then install Python, I use the python2.7, and then add the Python installation directory to the environment variable 2. Install Python Setuptools, refer to attachment 13. Install Python package management tool PIP, enter the DOS command, select the Python installation directory, for example, my installation directory is "C:\Python27", the path into DOS is "c:\Python27\Scripts" 4. Execute the Install command "Easy_install pip", wait for the installation to complete 5. Install the Python-based Selenium installation package, cmd window into the Python installation directory to execute the command "Pip install Selenium", waiting for the installation to complete; 6. Download Firefox plugin, see annex 2

Selenium_python_firefox.rar

Input code: From selenium import webdriverdriver=webdriver. Chrome () driver.get ("http://www.baidu.com") pop-up browser, and enter the Baidu interface, to prove the successful installation;

Selenium + Python deployment automation test environment

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.