Skip to main content

TakePhotosBeforeAndAfterInteractions

Configures the Photographer to take photos (a.k.a. screenshots) both before and after every single Interaction performed by the Actor in the spotlight.

Please note that this strategy will result in a lot of screenshots being taken, which will seriously affect the performance of your tests. For this reason, it’s best to use it only for debugging purposes.

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>