I have the following Gherkins:
Given i go to the URL
And i enter the <NRIC or FIN> as NRIC / FIN
And i select the option to proceed Next
And i select the first available available Handset Color
And i select the option to proceed Next
And i enter <Full Name> as Name
When i select the option to proceed Next
The "I select the option to proceed Next" appears three times. How should this be written as in the Step Definitions Java class file?
When writing cucumber scenarios you can adopt either a imperative or declarative style. I would prefer to write the same thing as below.
So it depends on who is going to read your scenarios. A link worth reading is imperative - declarative