import {PhotoTakingStrategy} from '@serenity-js/protractor/lib/stage/crew/photographer/strategies'
public class | source

PhotoTakingStrategy

Configures the Photographer to take photos (a.k.a. screenshots) of the Activity performed by the Actor in the spotlight under specific conditions.

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:

NameTypeAttributeDescription
event ActivityStarts | @serenity-js/core/lib/events~ActivityFinished
stage Stage

the Stage that holds reference to the Actor in the spotlight

Returns:

*

void