tags: Python Seienium
Python Selenium Firefox and geckodriver have version compatibility issues. Here, the latest version of Selenium+Firefox and geckodriver are used in accordance with the principle of lazy cancer.
1. Prepare the environment
Python:3.7
Firefox:66
geckodriver:0.24.0
Selenium:3.14.1
Firefox download link:https://github.com/mozilla/geckodriver/releases
Firefox driver download link:https://github.com/mozilla/geckodriver/releases
Second, download Firefox and driver
1. Download and install the version suitable for your computer through the link. The latest version of Firefox has combined the functions of Firebug and Firepath

2. geckodriver download, environment configuration
After downloading, unzip it, put it in the installation directory of python and Firefox, and configure the installation path of Firefox in the system variable. If you do not do this, you may report that the path cannot be found or cannot be found. Matching drive.

3. Open Pycharm to download selenium

3. Test
Use the following code to try to log in to Baidu. If successful, the environment configuration is complete.
from selenium import webdriver
driver = webdriver.Firefox()
driver.get(“”)
I have also succeeded in this version of the configuration, you can try it.

Configuration Environment: python:3.5 selenium:3.3.0 Installation method: python pip install -u selenium windows: 10 firefox:52 Because the firefox version is higher, so you...
1. Download the corresponding version of the browser Google Chrome Drive http://npm.taobao.org/mirrors/chromedriver/ 2. Download the installation of the drive into the chrome directory 3.win10 ...
Selenium+Python environment configuration Install Python Python official download address Install Selenium pip install selenium Install Firefox driver Firefox driver download address Configure environ...
The configuration process is as follows: Download firefox Download selenium on anaconda Download the corresponding geckodriver for Firefox Note: The version must match well! ! Otherwise, there will be...
1.pip3 install selenium 2.Download the driver at https://github.com/mozilla/geckodriver/releases/, pay attention to the driver version 3. Enter the download directory, extract the asking price, tar -z...
After testing this code, you can use the proxy to get the proxypool by request and then manipulate the string to get the appropriate parameter format....
selenium is no longer supported phantomjs Without opening the browser premise, all supported by special firefoxOf running your program. Begin with Chrome to try, did not succeed. firefox get a success...
Foreword First look at the definition of Selenium: Selenium is a tool for testing web applications. Selenium tests run directly in the browser, just like real users are operating. Supported browsers i...
Detailed installation of Selenium and configuration of Firefox environment Environmental preparation Selenium installation 1, download geckodriver 2, decompression of geckodriver How to find the insta...
The version number of Firefox and selenium has a one-to-one correspondence. If the version is low, it will be able to match the number! Firefox version: 46,download link selenium version: 2.53.0 insta...