PHPackages                             robertfausk/behat-screenshot-image-driver-url - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. robertfausk/behat-screenshot-image-driver-url

ActiveLibrary[Image &amp; Media](/categories/media)

robertfausk/behat-screenshot-image-driver-url
=============================================

Url image driver for bex/behat-screenshot behat extension

v1.0.0(6y ago)0956MITPHPPHP &gt;=5.6

Since Mar 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/robertfausk/behat-screenshot-image-driver-url)[ Packagist](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)[ Docs](https://github.com/robertfausk/behat-screenshot-image-driver-url)[ RSS](/packages/robertfausk-behat-screenshot-image-driver-url/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ImageDriver-URL for Behat-ScreenshotExtension
=============================================

[](#imagedriver-url-for-behat-screenshotextension)

[![Latest Stable Version](https://camo.githubusercontent.com/c9e938691a57d4fb2d042ba0ef43b97befa93c2e196b891f50f62fa3253f4365/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274666175736b2f6d696e6b2d70616e746865722d6472697665722f762f737461626c652e737667)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)[![Latest Unstable Version](https://camo.githubusercontent.com/8d590bf4be929cfcce1a3d2bd8f5b86bbae69c6b719615ed676785e29ca753f3/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f762f756e737461626c652e737667)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)[![Total Downloads](https://camo.githubusercontent.com/a9a8790b1aca2de147a044119762be06fe78c51ced167b54d3126fda41d06fdf/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f646f776e6c6f6164732e737667)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)[![License](https://camo.githubusercontent.com/8518417f6a10d3e534c26d53a24f67af36fb15b74e5cf9816b0f1090f691e037/68747470733a2f2f706f7365722e707567782e6f72672f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f6c6963656e73652e737667)](https://packagist.org/packages/robertfausk/behat-screenshot-image-driver-url)[![Build Status](https://camo.githubusercontent.com/f8c195a930a811c2b6e25e701c5ec85e7024bece7cb25edf7e2111a2c8c8cd09/68747470733a2f2f7472617669732d63692e6f72672f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/robertfausk/behat-screenshot-image-driver-url)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/7ed14b49b96d814a0f39946d1138b66d9950588628f64dd7f9b5273939f1eae3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/robertfausk/behat-screenshot-image-driver-url/)[![Code Coverage](https://camo.githubusercontent.com/f780d8e9d08398ac5715d68a695fbef408bf7412e54e033ace36529617f88748/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/robertfausk/behat-screenshot-image-driver-url/)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![PHP7 Compatible](https://camo.githubusercontent.com/1ce6c060d514713264b0ab5cc465d88b5cbdfc4c76285adebde654f32321a8b0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f6d61737465723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1ce6c060d514713264b0ab5cc465d88b5cbdfc4c76285adebde654f32321a8b0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d762f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c2f6d61737465723f7374796c653d666c61742d737175617265)[![Open Issues](https://camo.githubusercontent.com/15ebfe59bacc79a34cbed7f4a2a4e3a9f784202335b8a19598f145eed24dd9bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c3f7374796c653d666c61742d737175617265)](https://github.com/robertfausk/behat-screenshot-image-driver-url/issues)[![Closed Issues](https://camo.githubusercontent.com/40c5d67c9396eabae8210fb3ac2e1c36f4834c400aa8a5c96c45907af828c785/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d636c6f7365642d7261772f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c3f7374796c653d666c61742d737175617265)](https://github.com/robertfausk/behat-screenshot-image-driver-url/issues?q=is%3Aissue+is%3Aclosed)[![Contributors](https://camo.githubusercontent.com/f6e699a600a09efdb920dcae0875a80fb374418221db85827f1ac630215d77bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f726f62657274666175736b2f62656861742d73637265656e73686f742d696d6167652d6472697665722d75726c3f7374796c653d666c61742d737175617265)](https://github.com/robertfausk/behat-screenshot-image-driver-url/graphs/contributors)[![Contributors](https://camo.githubusercontent.com/e086de09162e9d5fc6fb2372d133813a07ddaf7cbdf2fd1a22881d7c1717f586/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f323032303f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e086de09162e9d5fc6fb2372d133813a07ddaf7cbdf2fd1a22881d7c1717f586/68747470733a2f2f696d672e736869656c64732e696f2f6d61696e74656e616e63652f7965732f323032303f7374796c653d666c61742d737175617265)

This package is an image driver for the [bex/behat-screenshot](https://github.com/elvetemedve/behat-screenshot) behat extension which can upload the screenshot to local web server dir and print the url of the uploaded image. If you are in a docker like environment then this extension provide the url in log output.

Installation
------------

[](#installation)

Install by adding to your `composer.json`:

```
composer require --dev robertfausk/behat-screenshot-image-driver-url
```

Configuration
-------------

[](#configuration)

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

```
default:
  extensions:
    Bex\Behat\ScreenshotExtension:
      active_image_drivers: url
```

You have to choose where to upload files and the web address:

```
default:
    extensions:
        Bex\Behat\ScreenshotExtension:
            active_image_drivers: url
            image_drivers:
                url:
                    screenshot_directory: /var/www/html/public/screenshots # your local web server dir where the image gets saved
                    screenshot_url: https://acme/screenshots # used for creation of web url; could also be something like https://localhost:9000/screenshots
                    # you can use something similar in your ci:
                    # screenshot_url: https://acme.test.my-company.com/screenshots

```

Usage
-----

[](#usage)

When a step fails a screenshot will be taken and put into web server directory. URL of the uploaded image will be displayed in the Behat log. So you can open it directly from log output:

```
  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 /var/www/html/public/screenshots/IMAGE_LINK.png or https://acme/screenshots/IMAGE_LINK.png
    Then I should have a skipped step # FeatureContext::skippedStep()
```

[![console output example of behat screenshot image driver url](doc/images/console_output.png)](doc/images/console_output.png)

### How to upgrade?

[](#how-to-upgrade)

Have a look at [CHANGELOG](CHANGELOG.md) for detailed information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2235d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4519de11004bd7c92ac86b654f673fe3a133cb77d6ea411a9b596a088f916192?d=identicon)[robertfausk](/maintainers/robertfausk)

---

Top Contributors

[![robertfausk](https://avatars.githubusercontent.com/u/1651297?v=4)](https://github.com/robertfausk "robertfausk (7 commits)")

---

Tags

imageBDDTDDdriverscreenshotBehatbehat-screenshot

### Embed Badge

![Health badge](/badges/robertfausk-behat-screenshot-image-driver-url/health.svg)

```
[![Health](https://phpackages.com/badges/robertfausk-behat-screenshot-image-driver-url/health.svg)](https://phpackages.com/packages/robertfausk-behat-screenshot-image-driver-url)
```

###  Alternatives

[polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

1468.0M237](/packages/polishsymfonycommunity-symfony-mocker-container)[ezsystems/behat-screenshot-image-driver-cloudinary

Cloudinary image driver for bex/behat-screenshot behat extension

28992.5k16](/packages/ezsystems-behat-screenshot-image-driver-cloudinary)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.2M4](/packages/bex-behat-extension-driver-locator)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

601.6M5](/packages/ciaranmcnulty-behat-stepthroughextension)[genesis/behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Screenshots and more. Works with Goutte and MinkExtension.

281.5M17](/packages/genesis-behat-fail-aid)[bex/behat-step-time-logger

Extension for behat to help find slow scenario steps by logging the step times

261.5M1](/packages/bex-behat-step-time-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
