You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.2 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Selenium+WebDriver 各浏览器驱动下载与使用
原理:.Net程序 --> Selenium类库 --> 各浏览器WebDriver(独立可执行exe程序) --> 本机安装的各浏览器(安装程序)注意WebDriver与本机安装的浏览器版本要保持一致。
+ Firefox(火狐)浏览器驱动
[下载地址](https://github.com/mozilla/geckodriver/releases/)
+ Chrome(google)浏览器驱动
[下载地址](http://chromedriver.storage.googleapis.com/index.html)
+ IE浏览器驱动
[下载地址](http://selenium-release.storage.googleapis.com/index.html)
+ Microsoft Edge (EdgeHTML)浏览器驱动
[下载地址](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
+ Microsoft Edge (Chromium)浏览器驱动
[下载地址](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
+ Opera浏览器驱动
可惜的是Selenium4开始,官方不在默认支持Opera, .NET环境下已无类库Opera官方出的示例只有Python版。Opera可以用Chrome代替基本一致。
[下载地址](https://github.com/operasoftware/operachromiumdriver/releases)
+ Safari 浏览器驱动
该浏览器不用下载驱动,可以直接执行代码