调用构造函数autofac依赖项错误时发生异常

时间:2018-12-11 23:50:04

标签: visual-studio automated-tests selenium-chromedriver autofac blink

消息 : Autofac.Core.DependencyResolutionException : An exception was thrown while invoking the constructor 'Void .ctor()' on type 'ChromeDriver'. ---> unknown error: unrecognized Blink revision: 2ac50e7249fbd55e6f517a28131605c9fb9fe897 (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: 2ac50e7249fbd55e6f517a28131605c9fb9fe897 (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.

标准输出warning: The previous ScenarioContext was already disposed.

我找不到问题所在,在其他地方也找不到任何解决方案。

1 个答案:

答案 0 :(得分:0)

您安装了哪个版本的Chrome?

Chrome驱动程序v2.10较旧。

您尝试使用最新版本吗?

例如http://chromedriver.storage.googleapis.com/index.html?path=2.45/