Selenium浏览器驱动下载
官网地址:https://www.selenium.dev/zh-cn/documentation/webdriver/getting_started/install_drivers/
2023年4月提供的浏览器驱动下载地址如下:
浏览器 | 驱动下载地址 |
---|---|
Chromium/Chrome | https://chromedriver.storage.googleapis.com/index.html |
Firefox | https://github.com/mozilla/geckodriver/releases |
Edge | https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ |
Internet Explorer | https://github.com/SeleniumHQ/selenium/releases |
下面以IE为例,说明如何进行驱动下载。
- 打开快速参考Internet Explorer对应的下载页面,找到"The Internet Explorer Driver Server"区域
- 直接点击右侧提供的下载链接进行驱动下载,当前32位的链接为:https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.8.0/IEDriverServer_Win32_4.8.1.zip
- 若想下载其他版本的驱动,请打开去掉部分后缀以后的链接:https://github.com/SeleniumHQ/selenium/releases
- 找到所需版本后,在Assets中下载IE驱动。