behat/mink-goutte-driver

This package is abandoned and no longer maintained. The author suggests using the behat/mink-browserkit-driver package instead.

Goutte driver for Mink framework

Maintainers

👁 Stof
👁 everzet

Package info

github.com/minkphp/MinkGoutteDriver

Homepage

Type:mink-driver

pkg:composer/behat/mink-goutte-driver

Statistics

Installs: 40 668 667

Dependents: 364

Suggesters: 9

Stars: 301

Open Issues: 0

v2.0.0 2021-12-29 10:56 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT a60fba46520c17d39b839151831cbc0710764b56

testingbrowsergoutteheadless

This package is auto-updated.

Last update: 2024-07-12 12:31:40 UTC


README

👁 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