behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

Installs: 25 421 667

Dependents: 436

Suggesters: 7

Security: 0

Stars: 532

Watchers: 5

Forks: 68

Open Issues: 17

Type:mink-driver

v1.3.4 2020-03-11 09:49 UTC

This package is auto-updated.

Last update: 2020-09-11 10:59:12 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