I know with Cucumber, you can define instance variables during a Given step definition.
This instance variable becomes part of the World scope.
Then you can access this instance variable during step definitions of When and Then.
Can you define instance variables also during When and Then step definitions and access them in the later When and Then step definitions?
If it's possible, is it even a common practice to define instance variables during When and Then step definitions?
Thank you.