behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

Installs: 35 316 096

Dependents: 348

Suggesters: 5

Security: 0

Stars: 547

Watchers: 6

Forks: 78

Open Issues: 5

Type:mink-driver

v2.1.0 2022-03-28 14:33 UTC

This package is auto-updated.

Last update: 2022-07-28 15:20:45 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads CI License codecov

Usage Example

<?php

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\BrowserKitDriver;

use Symfony\Component\HttpKernel\Client;

$app  = require_once(__DIR__.'/app.php'); // Silex app

$mink = new Mink(array(
    'silex' => new Session(new BrowserKitDriver(new Client($app))),
));

$mink->getSession('silex')->getPage()->findLink('Chat')->click();

Installation

To install use the composer require command:

composer require --dev behat/mink behat/mink-browserkit-driver

Maintainers