Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.67 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.67 KB

Mink BrowserKit Driver

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