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