bex/behat-screenshot-image-driver-img42
img42.com image driver for bex/behat-screenshot behat extension
Maintainers
Package info
github.com/tkotosz/behat-screenshot-image-driver-img42
pkg:composer/bex/behat-screenshot-image-driver-img42
Requires
- php: >=5.4
- behat/behat: ^3.0.0
- kriswallsmith/buzz: ^0.15.0
Requires (Dev)
- behat/mink-selenium2-driver: ^1.3.0
- bex/behat-extension-driver-locator: *
- bex/behat-screenshot: *
- bex/behat-test-runner: *
- jakoch/phantomjs-installer: ^1.9.8
- phpspec/phpspec: 2.4.0-alpha2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT c377f9ee4ea1e3e805ca2d7f0f6600414d06578f
- Tibor Kotosz <kotosy.woop@gmail.com>
This package is auto-updated.
Last update: 2026-05-29 01:04:36 UTC
README
👁 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.
Installation
Install by adding to your composer.json:
composer require --dev bex/behat-screenshot-image-driver-img42
Configuration
Enable the image driver in the Behat-ScreenshotExtension's config in behat.yml like this:
default: extensions: Bex\Behat\ScreenshotExtension: active_image_drivers: img42
The uploaded image will live for 10 minutes.
Usage
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 https://img42.com/idoftheimage Then I should have a skipped step # FeatureContext::skippedStep()
