Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

minkphp/MinkGoutteDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

85d9b26 · Jun 12, 2023
Dec 17, 2021
Dec 17, 2021
Jun 12, 2023
Oct 22, 2020
Oct 10, 2021
Dec 29, 2021
Feb 13, 2013
Jun 12, 2023
Dec 17, 2021
Oct 1, 2016

Repository files navigation

Mink Goutte Driver

Latest Stable Version Latest Unstable Version Total Downloads CI License codecov

Deprecation

Given that the Goutte project is deprecated in favor of using the symfony/http-client and symfony/browser-kit projects directly, this driver is deprecated in favor of behat/mink-browserkit-driver and won't be updated anymore.

Usage Example

<?php

require "vendor/autoload.php";

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\GoutteDriver,
    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.9",
        "behat/mink-goutte-driver": "^2.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