"Selenium and Python Automated test environment setup"

Source: Internet
Author: User
1. First you need to install Python, the installation procedure is not described in detail, please refer to: http://www.cnblogs.com/jinshengshun/p/6102012.html
2. When installing Python, the PIP is already included, so use Pip to install selenium directly. Enter the command installation directly under D:\Python\Scripts: Pip Install-u Selenium. (which is the Python installation path)

3. When you enter the command installation again under D:\Python\Scripts: Pip install-u Selenium prompt selenium has been installed, and tells us to install the path;

At this time, the python+selenium environment has been basically built.
In view of compatibility with the browser, you need to install driver. This is the Chrome browser you use this time. So you need to install chrome driver.

is: http://download.csdn.net/detail/lansefaji/8758887

http://chromedriver.storage.googleapis.com/index.html?path=2.20/

Copy the downloaded. exe file to the installation directory of chrome and add the directory to the environment variable path

At this point, the construction of the environment has been completed, you can start to write automation code ~ ~ ~

"Selenium and Python Automated test environment setup"

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.