I was wondering if anyone has come across this issue before when running a test via Specflow. In my class I declare the below:
private IWebDriver driver = ScenarioContext.Current.Get<IWebDriver>();
However, when I run the specflow test it falls over at the above line of code with the below error:
Message: System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation. ----> System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
Is this an error anyone has seen before when running a test through specflow?