This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/vendor/behat/mink-goutte-driver
2017-02-13 15:31:17 +00:00
..
src Move into nested docroot 2017-02-13 15:31:17 +00:00
.gitignore Move into nested docroot 2017-02-13 15:31:17 +00:00
.travis.yml Move into nested docroot 2017-02-13 15:31:17 +00:00
CHANGELOG.md Move into nested docroot 2017-02-13 15:31:17 +00:00
composer.json Move into nested docroot 2017-02-13 15:31:17 +00:00
LICENSE Move into nested docroot 2017-02-13 15:31:17 +00:00
phpunit.xml.dist Move into nested docroot 2017-02-13 15:31:17 +00:00
README.md Move into nested docroot 2017-02-13 15:31:17 +00:00

Mink Goutte Driver

Latest Stable Version Latest Unstable Version Total Downloads Build Status Scrutinizer Quality Score Code Coverage License

Usage Example

<?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;

Installation

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

Maintainers