Stars: 550
Forks: 78
Pull Requests: 137
Issues: 36
Watchers: 7
Last Updated: 2023-06-19 09:18:59
Symfony2 BrowserKit driver for Mink framework
License: MIT License
Languages: 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();
To install use the composer require
command:
composer require --dev behat/mink behat/mink-browserkit-driver