PHPackages                             nmfzone/laravel-behat-dusk - 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. nmfzone/laravel-behat-dusk

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

nmfzone/laravel-behat-dusk
==========================

Seamlessly integrate Behat with Laravel Dusk

v1.4(6y ago)82.2k3MITPHPPHP &gt;=7.1.0

Since Nov 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nmflabs/laravel-behat-dusk)[ Packagist](https://packagist.org/packages/nmfzone/laravel-behat-dusk)[ Docs](https://github.com/nmfzone/laravel-behat-dusk)[ RSS](/packages/nmfzone-laravel-behat-dusk/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

Laravel Behat Dusk

 [![Build Status](https://camo.githubusercontent.com/8414c04fcf4a731670899b49447cf9c90584491dffa8fc6499a9e272490d14e5/68747470733a2f2f7472617669732d63692e6f72672f6e6d667a6f6e652f6c61726176656c2d62656861742d6475736b2e737667)](https://travis-ci.org/nmfzone/laravel-behat-dusk) [![Total Downloads](https://camo.githubusercontent.com/8da1541e572b8d934460fbdb68741405a29dba48ddda7bba0eedad007fec7e73/68747470733a2f2f706f7365722e707567782e6f72672f6e6d667a6f6e652f6c61726176656c2d62656861742d6475736b2f642f746f74616c2e737667)](https://packagist.org/packages/nmfzone/laravel-behat-dusk) [![Latest Stable Version](https://camo.githubusercontent.com/b0c15831f14e2e63a8cc86402a2fddeaaf55d6bea40abbbffb93b14a671760a3/68747470733a2f2f706f7365722e707567782e6f72672f6e6d667a6f6e652f6c61726176656c2d62656861742d6475736b2f762f737461626c652e737667)](https://packagist.org/packages/nmfzone/laravel-behat-dusk) [![License](https://camo.githubusercontent.com/61ae9e09d7904ac7dd6f2189b332364cb48db84c1ff33bce44d6ca022e5c321b/68747470733a2f2f706f7365722e707567782e6f72672f6e6d667a6f6e652f6c61726176656c2d62656861742d6475736b2f6c6963656e73652e737667)](https://packagist.org/packages/nmfzone/laravel-behat-dusk)

Introduction
------------

[](#introduction)

Seamlessly integrate Behat with [Laravel Dusk](https://github.com/laravel/dusk).

### Requirements

[](#requirements)

- PHP &gt;= 7.1

### Installation

[](#installation)

```
$ composer require nmfzone/laravel-behat-dusk
```

If you want to change the default config, you must publish the config file:

```
$ php artisan vendor:publish --provider="Nmflabs\LaravelBehatDusk\ServiceProvider"
```

Usage
-----

[](#usage)

> I assume you're using this package for the first time you setup behat (so there is no behat.yml, etc).

1. Run this command `php artisan behat-dusk:install`
2. Duplicate your `.env` to `.env.behat` (optional). This will be the environment used by behat.
3. Adjust `behat.yml` as you wish
4. To run the test, run this command `php artisan behat` (it's just wrapper of the original behat command. It's automatically run `php artisan serve` for you, and stop it when test is done 🔥)
5. Enjoy!

Troubleshooting
---------------

[](#troubleshooting)

1. Element is not clickable at (x, y)

    If you're experiencing this issue, there is a high possibility that you're clicking an element that outside the viewport.

    What does it means? It means your element isn't appears on your screen (maybe your element located in very bottom of the page), when the browser trying to click that element. So, of course it's impossible to click that element.

    In the real usage, you're just scrolling the browser to bottom, until you see your element, right? Then, it's just the same here. You need to tell the browser, to scroll the browser to bottom, until it found the element.

    ```
    public function selectCheckbox($selector)
    {
        $this->browse(function (Browser $browser) use ($selector) {
            $browser->scrollTo('#foo-element')->check($selector);
        });
    }
    ```

Security
--------

[](#security)

If you discover any security related issues, please email to  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nabil M. Firdaus](https://twitter.com/nmfzone)
- [All contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Every ~1 days

Total

8

Last Release

2359d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9b0f009d7a74c0e93594313bcd493103393ca14e498a044accc337e3afcfa35?d=identicon)[nmfzone](/maintainers/nmfzone)

---

Top Contributors

[![nmfzone](https://avatars.githubusercontent.com/u/10361906?v=4)](https://github.com/nmfzone "nmfzone (14 commits)")

---

Tags

laravelBDDBehatLaravel Dusk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nmfzone-laravel-behat-dusk/health.svg)

```
[![Health](https://phpackages.com/badges/nmfzone-laravel-behat-dusk/health.svg)](https://phpackages.com/packages/nmfzone-laravel-behat-dusk)
```

###  Alternatives

[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M12](/packages/laracasts-behat-laravel-extension)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

601.6M5](/packages/ciaranmcnulty-behat-stepthroughextension)[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)[soulcodex/laravel-behat

Laravel Extension for easy integration with Behat

1760.8k](/packages/soulcodex-laravel-behat)[ezsystems/behat-screenshot-image-driver-cloudinary

Cloudinary image driver for bex/behat-screenshot behat extension

28992.5k16](/packages/ezsystems-behat-screenshot-image-driver-cloudinary)[macpaw/behat-messenger-context

Behat Context for testing Symfony Messenger component

16232.9k](/packages/macpaw-behat-messenger-context)

PHPackages © 2026

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