I have 2 step definition classes, both contain the following Given statement in their respective feature file:
- Given I am logged into my online account
The code implementation is exactly the same in each method step of course the test does not run. I get an error:
"Ambiguous step definitions found for step 'Given I am logged into my online account'"
However, when I removed one of the steps and moved the other into a base class. and both step definitions inherit BaseStep I still get the 'Ambiguous step definitions' error. Why???
public class LoginStep : BaseStep
[Given(@"I am logged into my online account'")]
public void GivenIAmLoggedIn()
Sorry, I am new to Specflow and I don't understand why the method is not shared.
Please sign in to leave a comment.