I am trying to run my specflow test in Chrome Browser. Every time I runs, following error comes:
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.
However when I ran the same script for IE, it runs fine. Only with Chrome driver it gives an error. Also every dependency (all *.dlls), chromedriver.exe are part of the solution. I am running my test in VS 2013.
Does anyone have the idea what could be the crux of this issue?
答案 0 :(得分:3)
今天早上我遇到了同样的问题。似乎Chrome可能有更新,导致驱动程序不兼容。我使用最新的here
下载并替换了Chrome驱动程序答案 1 :(得分:2)
首次尝试使用ChromeDriver时,我也会收到该错误消息。问题是因为当使用nuget安装ChromeDrvier 时。我选择错误的。当您搜索ChromeDriver时,可能有4或5个项目具有相同的名称。 **Select "Chromium.ChromeDrier" version 2.21.0 is work for me**
更新:我没有使用Specflow。我使用visual studio - selenium。但我认为这个错误会相同