HSA Test User c16dcac362 User import | лет назад: 7 | |
---|---|---|
.. | ||
src | лет назад: 7 | |
.gitignore | лет назад: 7 | |
.travis.yml | лет назад: 7 | |
CHANGELOG.md | лет назад: 7 | |
LICENSE | лет назад: 7 | |
README.md | лет назад: 7 | |
composer.json | лет назад: 7 | |
phpunit.xml.dist | лет назад: 7 |
<?php
require "vendor/autoload.php";
use Behat\Mink\Mink,
Behat\Mink\Session,
Behat\Mink\Driver\GoutteDriver,
Behat\Mink\Driver\Goutte\Client as GoutteClient;
$mink = new Mink(array(
'goutte' => new Session(new GoutteDriver(new GoutteClient())),
));
$session = $mink->getSession('goutte');
$session->visit("http://php.net/");
$session->getPage()->clickLink('Downloads');
echo $session->getCurrentUrl() . PHP_EOL;
Add a file composer.json with content:
{
"require": {
"behat/mink": "~1.5",
"behat/mink-goutte-driver": "~1.0"
}
}
(or merge the above into your project's existing composer.json file)
$> curl -sS https://getcomposer.org/installer | php
$> php composer.phar install