55 lines
2.0 KiB
Markdown
55 lines
2.0 KiB
Markdown
|
Mink BrowserKit Driver
|
||
|
======================
|
||
|
|
||
|
[](https://packagist.org/packages/behat/mink-browserkit-driver)
|
||
|
[](https://packagist.org/packages/behat/mink-browserkit-driver)
|
||
|
[](https://packagist.org/packages/behat/mink-browserkit-driver)
|
||
|
[](https://travis-ci.org/Behat/MinkBrowserKitDriver)
|
||
|
[](https://scrutinizer-ci.com/g/Behat/MinkBrowserKitDriver/)
|
||
|
[](https://scrutinizer-ci.com/g/Behat/MinkBrowserKitDriver/)
|
||
|
[](https://packagist.org/packages/behat/mink-browserkit-driver)
|
||
|
|
||
|
Usage Example
|
||
|
-------------
|
||
|
|
||
|
``` php
|
||
|
<?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
|
||
|
------------
|
||
|
|
||
|
``` json
|
||
|
{
|
||
|
"require": {
|
||
|
"behat/mink": "~1.5",
|
||
|
"behat/mink-browserkit-driver": "~1.1"
|
||
|
}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
``` bash
|
||
|
$> curl -sS https://getcomposer.org/installer | php
|
||
|
$> php composer.phar install
|
||
|
```
|
||
|
|
||
|
Maintainers
|
||
|
-----------
|
||
|
|
||
|
* Konstantin Kudryashov [everzet](http://github.com/everzet)
|
||
|
* Other [awesome developers](https://github.com/Behat/MinkBrowserKitDriver/graphs/contributors)
|