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

标签 bdd selenium-chromedriver specflow

我正在尝试在 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/

相关文章:

google-chrome - Selenium WebDriverException : unknown error: call function result missing 'value' while calling sendkeys method

visual-studio-2010 - SpecFlow - 运行并行测试

c# - SpecFlow 在查找程序集时抛出错误,但这不是我的 SpecFlow 项目?

c# - BDD 'Given'步骤说明及实现

swift - 如何获得 Guard Statement Fall-through 的测试覆盖率

python - 生菜、 Django 的背景

ruby - 哪些测试工具在 Ruby 中做什么?

python - 如何在 Behave 环境设置期间运行 Tornado IO Loop

java - 无法使用java从selenium中的右键菜单中选择选项

python - selenium.common.exceptions.WebDriverException : Message: Service chromedriver unexpectedly exited