externalPhotographer
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
externalphotoTakingStrategy: PhotoTakingStrategy
externaloptionalstage: Stage
Returns Photographer
Methods
staticexternalwhoWill
Instantiates a new
Photographerconfigured 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
Photographerconfigured 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
StageCrewMemberto a givenStage.Parameters
externalstage: Stage
An instance of a
StagethisStageCrewMemberwill be assigned to
Returns StageCrewMember
externalnotifyOf
Handles
DomainEventobjects emitted by theStagethisStageCrewMemberis assigned to.Parameters
externalevent: DomainEvent
Returns void
The Photographer is a
StageCrewMemberwho 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
SerenityFixturesSerenityWorkerFixturesUsing 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
StageStageCrewMemberTakePhotosBeforeAndAfterInteractionsTakePhotosOfFailuresTakePhotosOfInteractions