如何用:
- from selenium import webdriver
-
-
- driver = webdriver.Chrome(executable_path=r"D:\soft\chromedriver_win32\chromedriver.exe")
- # driver = webdriver.Firefox()
- driver.get("https://www.baidu.com/")
- # assert "Python" in driver.title
下载地址:
https://sites.google.com/chromium.org/driver/downloads
Current Releases
If you are using Chrome version 105, please download ChromeDriver 105.0.5195.19
If you are using Chrome version 104, please download ChromeDriver 104.0.5112.79
If you are using Chrome version 103, please download ChromeDriver 103.0.5060.134
For older version of Chrome, please see below for the version of ChromeDriver that supports it.
If you are using Chrome from Dev or Canary channel, please following instructions on the ChromeDriver Canary page.
For more information on selecting the right version of ChromeDriver, please see the Version Selection page.
Supports Chrome version 105
For more details, please see the release notes.
Supports Chrome version 104
For more details, please see the release notes.