Python+selenium automation environment, can open Firefox, but unable to perform automated operations

Source: Internet
Author: User

After the Python+selenium automation environment is set up, select Execute to be able to open Firefox, but can not continue to perform subsequent operations. The reason is that the version of selenium is incompatible with the version of Firefox.

Workaround:

1. Reduce Firefox to the version corresponding to selenium. For example, I use Selenium version is 3.3.3, then my corresponding version of Firefox is 52.0.2, if Firefox continues to upgrade, there will be incompatibilities. Suggestions can be set in Firefox tools----options--advanced to not check for updates, so as not to prevent automatic software updates problems.

2. Install the geckodriver that corresponds to the browser version. Can be found on the network. After downloading the latest geckodriver, place it in the Firefox installation directory and add the path to Firefox in the environment variable path, for example: D:\Program Files\Mozilla Firefox.

Python+selenium automation environment, can open Firefox, but unable to perform automated operations

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.