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

TakePhotosOfInteractions

Configures the Photographer to take photos (a.k.a. screenshots) when the the Actor in the spotlight performs any Interaction.

This strategy works best when you want the results of your automated tests to become comprehensive living documentation of your system.

Please note that taking screenshots affects the performance of your tests.

Extends:

src/stage/crew/photographer/strategies/PhotoTakingStrategy.js~PhotoTakingStrategy → TakePhotosOfInteractions

Method Summary

Protected Methods
protected
protected

shouldTakeAPhotoOf(event: DomainEvent): boolean

Protected Methods

protected photoNameFor(event: InteractionFinished): string source

Params:

NameTypeAttributeDescription
event InteractionFinished

Returns:

string

protected shouldTakeAPhotoOf(event: DomainEvent): boolean source

Params:

NameTypeAttributeDescription
event DomainEvent

Returns:

boolean