The above is the example, suppose i want to call performAsClick function from AddToDoItem class…
divya parvati

In the Screenplay Pattern, each Task is represented by a separate class. If a task needs to do more than one thing, it usually indicates that you need more than one task.

For example, if I have a task such as PayByCreditCard, I’d expect it to invoke other tasks such as EnterCardNumber, EnterExpiryDate, EnterCardVerificationNumber.

Does that answer your question?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.