Skip to content

Clarification on how to take screenshots for each step #768

@justinwiley

Description

@justinwiley

Expected Behavior

The documentation includes an example of how to take screenshots on each step.

Actual Behavior

The documentation mentions it in passing, but it's not immediately clear how to make that happen. 'page' is referenced in the example, but adding page screenshot doesnt seem to result in screenshots being taken.

    async afterEachStep(step, flow) {
      await super.afterEachStep(step, flow);
      console.log('after', step);
      await page.screenshot(`${imgnum++}.jpg`)
    }

Steps to Reproduce the Problem

  1. Create a replay script, customize it

Specifications

  • Version: latest
  • Platform: mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions