Photographer
Implements
- StageCrewMember
Index
Methods
Constructors
Methods
staticwhoWill
Instantiates a new Photographer configured to take photos (screenshots) as per the specified PhotoTakingStrategy.
Parameters
strategy: new () => PhotoTakingStrategy
A no-arg constructor function that instantiates a PhotoTakingStrategy
Returns StageCrewMember
staticfromJSON
Instantiates a new Photographer configured to take photos (screenshots) as per the specified PhotoTakingStrategy.
Parameters
optionalconfig: { strategy?: Omit<PhotoTakingStrategy | TakePhotosBeforeAndAfterInteractions | TakePhotosOfFailures | TakePhotosOfInteractions, PhotoTakingStrategy> }
Returns StageCrewMember
assignedTo
Assigns this StageCrewMember to a given Stage.
Parameters
stage: Stage
An instance of a Stage this StageCrewMember will be assigned to
Returns StageCrewMember
notifyOf
Handles DomainEvent objects emitted by the Stage this StageCrewMember is assigned to.
Parameters
event: DomainEvent
Returns void
Constructors
constructor
Parameters
photoTakingStrategy: PhotoTakingStrategy
optionalstage: Stage
Returns Photographer
The Photographer is a StageCrewMember who takes screenshots using the web browser associated with the Actor that is currently in the spotlight.
Registering Photographer programmatically
Using Photographer with Playwright Test
Learn more
Using Photographer with WebdriverIO
Using Photographer with Protractor
Taking photos only upon failures only
Taking photos of all the interactions
Taking photos before and after all the interactions
Learn more