A notepad is an actor-associated store for retaining initial data and recording information during Screenplay interactions. It supports both static values and dynamically resolved data. section 14.2.3 section 14.4
Use a notepad to:
- Seed each actor with persona-specific data, such as traveler details generated from the actor’s name. section 14.2.3
- Share information between activities by recording values of interest for later use in the scenario. section 14.2.3
- Pass default data into parameterized tasks while allowing scenarios to override selected fields. section 15.1.6
Configure the actor with TakeNotes and a typed Notepad. When a task consumes notepad data, Serenity/JS exposes it through a QuestionAdapter so the same task can handle static, dynamic, or lazy-loaded values. section 14.2.3 section 15.1.6
Generated traveler details with scenario overrides
An actor receives a notepad containing TravelerDetails.of(actor.name). A valid sign-up task reads travelerDetails from the notepad. A negative scenario merges an email address such as smiths@example.org into the default details to simulate a duplicate account.
