c# - 无法使用 selenium webdriver 在 Windows 10 中启动 "Microsoft Edge"浏览器

标签 c# selenium selenium-webdriver microsoft-edge

我正在使用 selenium webdriver C# 自动化。我必须在 Windows 10 机器上为“Microsoft Edge”浏览器运行自动化。请让我知道如何使用 c# selenium webdriver 在 widnows 10 中启动“Microsoft Edge”。

我使用下面的代码来启动,但它启动的是 IE 11。

最佳答案

  1. 你有Microsoft Webdriver吗? ?这用于新的 Edge 浏览器

  2. 您的 Selenium Webdriver 版本是 2.47 吗? Selenium 在 2.47 中添加了 Edge 支持

  3. 尝试一下

    IWebdriver driver = new EdgeDriver(serverPath, options);
    

    了解更多Information and Examples

关于c# - 无法使用 selenium webdriver 在 Windows 10 中启动 "Microsoft Edge"浏览器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31744234/

相关文章:

c# - WPF 组合框问题

c# - Azure Function 读取 local.settings.json 到对象

javascript - TheIntern.io/Selenium elementByCssSelector 只工作一次

google-chrome - 调试 "Element is not clickable at point"错误

selenium - 无法使用浏览器堆栈运行我的 Selenium 代码

c# - OnPaint 事件接​​二连三

c# - 如何在wix中显示自定义安装程序的登录信息

javascript - 我可以将 JavascriptExecutor 与 Appium 一起使用吗?

linux - headless with rails selenium-webdriver 通过 linux 服务器获取网页屏幕

selenium - Selenium 测试后 Internet Explorer 11 未关闭