behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

Installs: 3 502 649

Dependents: 156

Stars: 16

Watchers: 4

Forks: 35

Open Issues: 6

Type: mink-driver

v1.3.2 2016-03-05 08:59 UTC

README

Latest Stable Version Latest Unstable Version Total Downloads Build Status Scrutinizer Quality Score Code Coverage License

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