behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

Installs: 30 437 285

Dependents: 377

Suggesters: 5

Security: 0

Stars: 544

Watchers: 6

Forks: 74

Open Issues: 18

Type:mink-driver

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

This package is auto-updated.

Last update: 2021-07-19 18:05:23 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