behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

Installs: 43 638 077

Dependents: 361

Suggesters: 6

Security: 0

Stars: 550

Watchers: 7

Forks: 81

Open Issues: 5

Type:mink-driver

v2.2.0 2023-12-09 11:30 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