In the Screenplay Pattern, each Task is represented by a separate class.
Jan Molak


the intention of the question was suppose say there are 5 scenarios in the feature file, for each scenario task would be different and i will have to create 5 different class, rather its easier to maintain in a single class file since they belong to same feature

Show your support

Clapping shows how much you appreciated divya parvati’s story.