drupal-behat icon indicating copy to clipboard operation
drupal-behat copied to clipboard

Remove ScreenShotContext

Open ademarco opened this issue 8 years ago • 1 comments

Scope

Screenshots can be better handled via https://packagist.org/packages/bex/behat-screenshot

Tasks

  • [ ] Remove ScreenShotContext
  • [ ] Add entry in README suggesting usage of https://packagist.org/packages/bex/behat-screenshot

ademarco avatar Jan 10 '17 09:01 ademarco

I started a Behat extension to take screenshots which is inspired by the ScreenshotContext of this project: https://github.com/LoversOfBehat/ScreenshotExtension/

For my use case bex/behat-screenshot is not suitable since that project only handles screenshots in image format, as taken by the Selenium driver. For performance reasons 90% of the scenarios in my project do not use Selenium but Goutte. I needed a way to handle both images and HTML files such as is done here.

At the moment it only supports saving the screenshots to the local filesystem (similar to what is done here), but the storage is pluggable so it will be possible to implement Amazon S3, Google Drive and other file hosting solutions in it.

pfrenssen avatar Sep 29 '19 20:09 pfrenssen