Python-selenium 2 Upgrade to the latest version

Source: Internet
Author: User

Python-selenium 2 Upgrade to the latest version

Selenium 2.48 was used before. firefox36

The actual user's browser may have an automatic Update feature, so the version is basically up-to-date. So this time specifically to do a browser upgrade and selenium upgrade.

Since Webdriver 3.0, selenium no longer provides default browser support. In other words, Firefox is no longer supported by default. With Firefox testing, you need to use Mozilla's own driver.

Command line Execution command

Pip Install--upgrade Selenium   

Upgrade Firefox at the same time. or download the latest version of Firefox http://www.firefox.com.cn/download/

Download the driver for Firefox, Gechodriver

https://github.com/mozilla/geckodriver/releases/

Configuration:

Take Firefox's driver Geckodriver as an example. After downloading, it is recommended to put it directly in Firefox's default installation directory (C:\Program Files (x86) \mozilla firefox\).

The most important point: the system environment variable path, add the installation path on Firefox.

Then, everything runs as usual.

After execution, it is found that some elements cannot be located and need time to pinpoint the cause.

Python-selenium 2 Upgrade to the latest version

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.