无法启动" Microsoft Edge" windows 10中的浏览器使用selenium webdriver

时间:2015-07-31 10:43:10

标签: c# selenium selenium-webdriver microsoft-edge

我正在使用selenium webdriver c#automation。而且我必须在Windows 10机器上运行自动化,用于" Microsoft Edge"浏览器。请让我知道如何启动" Microsoft Edge"在widnows 10中使用c#selenium webdriver。

我已经使用下面的代码启动但是它启动了IE 11。

1 个答案:

答案 0 :(得分:2)

  1. 你有Microsoft Webdriver吗?这用于新的Edge Browser

  2. 你的Selenium Webdriver版本是2.47吗? Selenium增加了Edge支持2.47

  3. 然后尝试

    IWebdriver driver = new EdgeDriver(serverPath, options);
    

    了解更多Information and Examples