【发布时间】:2016-04-26 13:02:04
【问题描述】:
我正在使用 Selenium 的 C# 绑定,并尝试在 Microsoft Edge 中进行简单的自动化测试。
class Program
{
static void Main(string[] args)
{
EdgeOptions options = new EdgeOptions();
options.PageLoadStrategy = EdgePageLoadStrategy.Eager;
RemoteWebDriver driver = new EdgeDriver();
driver.Url = "http://bing.com/";
}
}
但程序在 EdgeDriver 初始化时停止,边缘浏览器启动但 url 从未更改为“bing.com”。
有其他人经历过吗?
【问题讨论】:
-
你安装了什么
selenium包版本? -
@alecxe 我目前使用的是 2.53.0 版本的 c# 绑定
-
确保您已经下载了与您的
Os build number兼容的edgeDriver.....要检查您的操作系统版本号,请使用此命令systeminfo | findstr /B /C:"OS Version"
标签: c# selenium microsoft-edge