behat/mink-goutte-driver

Goutte driver for Mink framework

Installs: 25 379 201

Dependents: 399

Suggesters: 10

Security: 0

Stars: 299

Watchers: 6

Forks: 47

Open Issues: 7

Type:mink-driver

v1.3.0 2021-10-12 11:35 UTC

This package is auto-updated.

Last update: 2021-10-12 11:37:23 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads CI 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