Selenium+python Environment Construction

Source: Internet
Author: User

1, Java Environment, configure the appropriate environment variables.

See if the configuration is successful as follows:

2, Python environment, configure the corresponding environment variables. Includes two paths of Python and python/scripts

See if the configuration is successful as follows:

3, installation Selenium

Via PIP installation, enter under Python path: py-2-m pip install selenium installation

4, download the browser, and need to install the corresponding Webdriver

If you download Firefox http://www.firefox.com.cn/, download Gectkodriver https://github.com/mozilla/geckodriver/releases/

If you download Google Browser, the corresponding webdriver download path is Http://npm.taobao.org/mirrors/chromedriver

If you download IE browser, the corresponding http://selenium-release.storage.googleapis.com/index.html

5, install the editor, such as Pycharm

After the installation is complete, you can verify that the browser can be opened and into the appropriate interface (especially note that the browser needs to install Webdriver, I was here for a long day):

Selenium+python Environment Construction

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.