The step definitions provide the connection between your feature files and application interfaces. You have to add the [Binding] attribute to the class where your step definitions are:
Step Definition Methods Rules
Must be in a public class, marked with the [Binding] attribute.
Must be a public method.
Can be either a static or an instance method. If it is an instance method, the containing class will be instantiated once for every scenario.
Cannot have out or ref parameters.
Should return void or Task.
Download
0 formats
No download links available.
How to create StepDefination File in Specflow Selenium C# nunit | NatokHD