SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.22k stars 751 forks source link

BoDi.ObjectContainerException : Interface cannot be resolved: OpenQA.Selenium.IWebDriver #2745

Open Nurgazy-web opened 2 months ago

Nurgazy-web commented 2 months ago

Link to Feature Request

No response

Implementation Idea

I am getting this error after VS2022 latest update. Was working properly before VS update. Any ideas?

Stack Trace:  <>cDisplayClass3_0.b1() RegistrationWithStrategy.ExecuteWithLock(Object lockObject, Func1 getter, Func1 factory, ResolutionList resolutionPath) TypeRegistration.ResolvePerContext(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath) RegistrationWithStrategy.Resolve(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath) ObjectContainer.ResolveObject(RegistrationKey keyToResolve, ResolutionList resolutionPath) ObjectContainer.Resolve(Type typeToResolve, ResolutionList resolutionPath, String name) <>cDisplayClass71_0.b0(ParameterInfo p) SelectArrayIterator2.Fill(ReadOnlySpan1 source, Span1 destination, Func2 func) SelectArrayIterator2.ToArray() ObjectContainer.ResolveArguments(IEnumerable1 parameters, RegistrationKey keyToResolve, ResolutionList resolutionPath)

<22 more frames...> MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr) BindingInvoker.InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration) TestExecutionEngine.ExecuteStepMatch(BindingMatch match, Object[] arguments, TimeSpan& duration) TestExecutionEngine.ExecuteStep(IContextManager contextManager, StepInstance stepInstance) TestExecutionEngine.OnAfterLastStep() TestRunner.CollectScenarioErrors() SideCartFeature.ScenarioCleanup() SideCartFeature.AddComplementaryItemInSideCart() line 105 RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)