Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on how to take screenshots for each step #768

Open
justinwiley opened this issue Feb 23, 2024 · 0 comments
Open

Clarification on how to take screenshots for each step #768

justinwiley opened this issue Feb 23, 2024 · 0 comments

Comments

@justinwiley
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant