Skip to main content

TakePhotosOfFailures

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.

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>