<?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(GoutteClient($startUrl))),
));
$mink->getSession('goutte')->getPage()->findLink('Chat')->click();
{
"requires": {
"behat/mink": "1.4.*",
"behat/mink-goutte-driver": "*"
}
}
curl http://getcomposer.org/installer | php
php composer.phar install
Copyright (c) 2012 Konstantin Kudryashov (ever.zet). See LICENSE for details.
- Konstantin Kudryashov everzet