Skip to content

eugenegp/MinkBrowserKitDriver

 
 

Repository files navigation

Mink BrowserKit Driver

  • Build Status

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

{
    "require": {
        "behat/mink":                   "1.4.*",
        "behat/mink-browserkit-driver": "1.0.*"
    }
}
$> curl http://getcomposer.org/installer | php
$> php composer.phar install

Maintainers

About

Symfony2 BrowserKit driver for Mink framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%