PHPackages                             edmondscommerce/behat-zalenium-context - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. edmondscommerce/behat-zalenium-context

ActiveLibrary[Testing &amp; Quality](/categories/testing)

edmondscommerce/behat-zalenium-context
======================================

A Behat Context for integrating with Zalenium and allowing split videos for test scenarios

02571PHP

Since Feb 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/edmondscommerce/behat-zalenium-context)[ Packagist](https://packagist.org/packages/edmondscommerce/behat-zalenium-context)[ RSS](/packages/edmondscommerce-behat-zalenium-context/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Behat Zalenium Context
======================

[](#behat-zalenium-context)

By [Edmonds Commerce](https://www.edmondscommerce.co.uk)
--------------------------------------------------------

[](#by-edmonds-commerce)

A Behat Context for integrating with Zalenium and allowing split videos for test scenarios

The context passes message to Zalenium through the use of Browser cookies:

- To indicate test pass and failure
- Add current step message to output video
- Some error handling

Requirements
------------

[](#requirements)

- PHP7.0+
- Using Zalenium (based on Selenium 3)
- Docker (for Zalenium to run)
- Using Chrome in automated tests

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

[](#installation)

Install via composer -

```
composer require edmondscommerce/behat-zalenium-context:dev-master@dev
```

*if you are using this in your main repository we suggest add this as a dev dependency with the `--dev` flag*

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

[](#configuration)

### Use ZaleniumExtension

[](#use-zaleniumextension)

Replace the `MinkExtension` in your `behat.yml` file with the `ZaleniumExtension`. This is required to allow the Zalenium messages to be set in the videos correctly.

```
default:
  extensions:
    Behat\MinkExtension:
```

Becomes

```
default:
  extensions:
    EdmondsCommerce\ZaleniumContext\ZaleniumExtension:
```

### Include Context in Behat Configuration

[](#include-context-in-behat-configuration)

```
default:
    # ...
    suites:
        default:
        # ...
            contexts:
                - # ...
                - EdmondsCommerce\ZaleniumContext\ZaleniumContext
```

### Update your profile to use Zalenium

[](#update-your-profile-to-use-zalenium)

This will allow the `ZaleniumDriver` to work in place of `Selenium2Driver`. The `ZaleniumDriver` is an extension of the `Selenium2Driver`.

```
# ...
        selenium_chrome_session_headless:
          selenium2:
            browser: chrome
            capabilities:
# ...
```

Becomes

```
# ...
        selenium_chrome_session:
          zalenium:
            browser: chrome
            capabilities:
# ...
```

Usage
-----

[](#usage)

See our handbook page in the links below for further information on how to use Zalenium with Behat. If you find a bug or want to help improve the extension, drop us an issue/pull request!

### Notes

[](#notes)

By default, the `ZaleniumDriver` will disable W3C mode, this is not supported by the underlying web driver. As a matter of convenience, this has been done in the driver itself, along with the allowance of insecure SSL. These options are automatically added to the desired capabilities.

All test scenarios must have a name, the following will cause an exception in the Zalenium driver.

```
Scenario:
Given I don't set my scenario name
Then I see my tests are broken
```

Links
-----

[](#links)

[Packagist](https://packagist.org/packages/edmondscommerce/zalenium-context)

[Zalenium Github](https://github.com/zalando/zalenium)

[Zalenium on the EC handbook](https://www.edmondscommerce.co.uk/handbook/Development-Tools/Testing/Zalenium/)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7af407ceeb8622c9c164d386ef3e95cda4c94d141240348ac5703223bb499d0e?d=identicon)[edmondscommerce](/maintainers/edmondscommerce)

---

Top Contributors

[![edmondscommerce](https://avatars.githubusercontent.com/u/62842?v=4)](https://github.com/edmondscommerce "edmondscommerce (1 commits)")

### Embed Badge

![Health badge](/badges/edmondscommerce-behat-zalenium-context/health.svg)

```
[![Health](https://phpackages.com/badges/edmondscommerce-behat-zalenium-context/health.svg)](https://phpackages.com/packages/edmondscommerce-behat-zalenium-context)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M341](/packages/dms-phpunit-arraysubset-asserts)[phpbenchmark/phpbenchmark

Easy to use benchmark toolkit for your PHP-application. This library contains classes for comparing algorithms as well as benchmarking application responses

8011.5k2](/packages/phpbenchmark-phpbenchmark)

PHPackages © 2026

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