webStageTakePhotosOfFailuresOn this pageTakePhotosOfFailures Configures the Photographer to take photos (a.k.a. screenshots) when then Interaction performed by the Actor in the spotlight results in an error. This strategy works best when you are interested in the screenshots only when a scenario fails.HierarchyPhotoTakingStrategyTakePhotosOfFailuresIndex ConstructorsconstructorMethodsconsiderTakingPhotoConstructors constructornew TakePhotosOfFailures(): TakePhotosOfFailuresReturns TakePhotosOfFailuresMethods considerTakingPhotoconsiderTakingPhoto(event: ActivityStarts | ActivityFinished, stage: Stage): Promise<void>Takes a photo of the web browser used by the Actor in the spotlight. Learn moreActivityStartsActivityFinishedStageParametersevent: ActivityStarts | ActivityFinishedstage: StageThe Stage that holds reference to the Actor in the spotlightReturns Promise<void>
Configures the Photographer to take photos (a.k.a. screenshots) when then Interaction performed by the Actor in the spotlight results in an error.
This strategy works best when you are interested in the screenshots only when a scenario fails.