bex/behat-screenshot-image-driver-img42 image driver for bex/behat-screenshot behat extension

1.0.0 2015-11-13 21:20 UTC

This package is auto-updated.

Last update: 2021-03-29 00:21:15 UTC


Scrutinizer Code Quality Build Status Build Status

This package is an image driver for the bex/behat-screenshot behat extension which can upload the screenshot to Img42 and print the url of the uploaded image.


Install by adding to your composer.json:

composer require --dev bex/behat-screenshot-image-driver-img42


Enable the image driver in the Behat-ScreenshotExtension's config in behat.yml like this:

      active_image_drivers: img42

The uploaded image will live for 10 minutes.


When you run behat and a step fails then the Behat-ScreenshotExtension will automatically take the screenshot and will pass it to the image driver, which will upload it and returns the URL of the uploaded image. So you will see something like this:

  Scenario:                           # features/feature.feature:2
    Given I have a step               # FeatureContext::passingStep()
    When I have a failing step        # FeatureContext::failingStep()
      Error (Exception)
Screenshot has been taken. Open image at
    Then I should have a skipped step # FeatureContext::skippedStep()