<?php
use Behat\Mink\Mink,
Behat\Mink\Session,
Behat\Mink\Driver\GoutteDriver,
Behat\Mink\Driver\Goutte\Client as GoutteClient;
$startUrl = 'http://example.com';
$mink = new Mink(array(
'goutte' => new Session(new GoutteDriver(new GoutteClient($startUrl))),
));
$mink->getSession('goutte')->getPage()->findLink('Chat')->click();
{
"require": {
"behat/mink": "~1.5",
"behat/mink-goutte-driver": "~1.0"
}
}
$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install
- Konstantin Kudryashov everzet
- Other awesome developers