drupal-behat
drupal-behat copied to clipboard
Remove ScreenShotContext
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
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.