【发布时间】:2020-01-14 19:59:34
【问题描述】:
我正在为 chrome 和 edge 使用 selenium 远程驱动程序(使用 C#)。测试似乎在 chrome 浏览器上运行良好,但不是在边缘。 Edge 已启动,但无法导航到指定的 uri。
我试图确保,我的 webdriver 版本与安装的 edge 版本相同,我在 windows 10 上,所以它已经打开了。
var options = new EdgeOptions();
options.PageLoadStrategy = PageLoadStrategy.Eager;
_driver = new EdgeDriver(driverPath,options);
_driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(5);
_driver.Navigate().GoToUrl("www.google.com");
The image contains the nuget packages added to the project 已安装的 Microsoft Edge 44.18362.329.0。任何帮助将不胜感激。
【问题讨论】:
标签: c# windows-10 microsoft-edge selenium-remotedriver