exception while invoking the constructor autofac dependency error

南笙酒味 提交于 2020-01-25 11:14:04

问题


Message: 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.

Standard Output:warning: The previous ScenarioContext was already disposed.

I can't find out where is the problem and I didn't get any solution elsewhere.


回答1:


Which version of Chrome do you have installed?

Chrome driver v2.10 is rather old.

Have you tried using the latest version?

For example, http://chromedriver.storage.googleapis.com/index.html?path=2.45/



来源:https://stackoverflow.com/questions/53734102/exception-while-invoking-the-constructor-autofac-dependency-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!