Skip to main content

TakePhotosOfInteractions

Configures the Photographer to take photos (a.k.a. screenshots) when then 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.

Hierarchy

Index

Constructors

constructor

Methods

considerTakingPhoto

  • considerTakingPhoto(event: ActivityStarts | ActivityFinished, stage: Stage): Promise<void>
  • Takes a photo of the web browser used by the Actor in the spotlight.

    Learn more


    Parameters

    • event: ActivityStarts | ActivityFinished
    • stage: Stage

      The Stage that holds reference to the Actor in the spotlight

    Returns Promise<void>