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/core/vendor/behat/mink-goutte-driver
2015-08-27 12:03:05 -07:00
..
src Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542 2015-08-27 12:03:05 -07:00
tests Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176 2015-08-17 17:00:26 -07:00
.gitignore Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176 2015-08-17 17:00:26 -07:00
.travis.yml Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542 2015-08-27 12:03:05 -07:00
CHANGELOG.md Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176 2015-08-17 17:00:26 -07:00
composer.json Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542 2015-08-27 12:03:05 -07:00
LICENSE Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176 2015-08-17 17:00:26 -07:00
phpunit.xml.dist Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542 2015-08-27 12:03:05 -07:00
README.md Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542 2015-08-27 12:03:05 -07: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