externalPhotographer
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalphotoTakingStrategy: PhotoTakingStrategy
externaloptionalstage: Stage
Returns Photographer
Methods
staticexternalwhoWill
Instantiates a new
Photographer
configured to take photos (screenshots) as per the specifiedPhotoTakingStrategy
.Parameters
externalstrategy: new () => PhotoTakingStrategy
A no-arg constructor function that instantiates a
PhotoTakingStrategy
Returns StageCrewMember
staticexternalfromJSON
Instantiates a new
Photographer
configured to take photos (screenshots) as per the specifiedPhotoTakingStrategy
.Parameters
externaloptionalconfig: { strategy?: Omit<PhotoTakingStrategy | TakePhotosBeforeAndAfterInteractions | TakePhotosOfFailures | TakePhotosOfInteractions, PhotoTakingStrategy> }
externaloptionalstrategy: Omit<PhotoTakingStrategy | TakePhotosBeforeAndAfterInteractions | TakePhotosOfFailures | TakePhotosOfInteractions, PhotoTakingStrategy>
Returns StageCrewMember
externalassignedTo
Assigns this
StageCrewMember
to a givenStage
.Parameters
externalstage: Stage
An instance of a
Stage
thisStageCrewMember
will be assigned to
Returns StageCrewMember
externalnotifyOf
Handles
DomainEvent
objects emitted by theStage
thisStageCrewMember
is assigned to.Parameters
externalevent: DomainEvent
Returns void
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
SerenityOptions
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
Stage
StageCrewMember
TakePhotosBeforeAndAfterInteractions
TakePhotosOfFailures
TakePhotosOfInteractions