无法使用 Specflow 运行 在 Chrome 中进行测试

Unable to run test in Chrome with Specflow

我正尝试在 Chrome 浏览器中 运行 我的 specflow 测试。每次我 运行s,都会出现以下错误:

Autofac.Core.DependencyResolutionException : An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ChromeDriver'. ---> unknown error: unrecognized Blink revision: 3b3c00f2d95c45cca18ab944acced413fb759311 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64) (See inner exception for details.) ----> System.InvalidOperationException : unknown error: unrecognized Blink revision: 3b3c00f2d95c45cca18ab944acced413fb759311 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 x86_64) TearDown : System.NullReferenceException : Object reference not set to an instance of an object.

然而,当我 运行 为 IE 使用相同的脚本时,它 运行 没问题。只有 Chrome 驱动程序才会出错。此外,每个依赖项(所有 *.dll),chromedriver.exe 都是解决方案的一部分。我正在 运行在 VS 2013 中进行测试。

有人知道这个问题的症结所在吗?

今天早上我遇到了同样的问题。看来 Chrome 的更新可能导致驱动程序不兼容。我下载了 Chrome 驱动程序并将其替换为最新的 here

当我第一次尝试 ChromeDriver 时,我也收到了该错误消息。问题是因为 使用 nuget 安装 ChromeDrvier。我选择 错误。 当您搜索 ChromeDriver 时,可能有 4 或 5 个项目具有相同的名称。 **Select "Chromium.ChromeDrier" version 2.21.0 is work for me**

更新:我没有使用 Specflow。我使用 visual studio - 硒。但我认为这个错误将是相同的