import {PhotoTakingStrategy} from '@serenity-js/protractor/lib/stage/crew/photographer/strategies'
PhotoTakingStrategy
Configures the Photographer to take photos (a.k.a. screenshots) of the Activity performed by the Actor in the spotlight under specific conditions.
Direct Implemented:
Method Summary
Public Methods | ||
public |
considerTakingPhoto(event: ActivityStarts | @serenity-js/core/lib/events~ActivityFinished, stage: Stage): * Takes a photo of the web browser held by the Actor in the spotlight. |
Public Methods
public considerTakingPhoto(event: ActivityStarts | @serenity-js/core/lib/events~ActivityFinished, stage: Stage): * source
Takes a photo of the web browser held by the Actor in the spotlight.
Params:
Name | Type | Attribute | Description |
event | ActivityStarts | @serenity-js/core/lib/events~ActivityFinished | ||
stage | Stage | the Stage that holds reference to the Actor in the spotlight |
Returns:
* | void |