我正在尝试在 Chrome 浏览器中运行我的 specflow 测试。每次我运行时,都会出现以下错误:
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
关于bdd - 无法使用 Specflow 在 Chrome 中运行测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32965676/