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

Remove screenshot consumers functionality #817

Closed
YevgeniyShunevych opened this issue Feb 7, 2024 · 0 comments
Closed

Remove screenshot consumers functionality #817

YevgeniyShunevych opened this issue Feb 7, 2024 · 0 comments
Assignees
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Feb 7, 2024

Screenshots functionality is simplified and now its configuration is similar to the configuration of page snapshots. Basically, you no longer need to call ScreenshotConsumers.AddFile() to enable screenshots saving, it is enabled by default. To change the default screenshot file path template use Screenshots.UseFileNameTemplate("...").

Removed

  • AtataContextBuilder's ScreenshotConsumers property is removed together with all the other code related to it.
  • The same is valid for JSON configuration, "screenshotConsumers" JSON property is gone. Use "screenshots"/"fileNameTemplate" JSON property to configure screenshot file path.
  • IScreenshotConsumer and implementation classes are removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant