Skip to content

Latest commit

 

History

History
executable file
·
49 lines (36 loc) · 850 Bytes

README.md

File metadata and controls

executable file
·
49 lines (36 loc) · 850 Bytes

Mink Goutte Driver

Usage Example

<?php

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\GoutteDriver,
    Behat\Mink\Driver\Goutte\Client as GoutteClient;

$startUrl = 'http://example.com';

$mink = new Mink(array(
    'goutte' => new Session(new GoutteDriver(GoutteClient($startUrl))),
));

$mink->getSession('goutte')->getPage()->findLink('Chat')->click();

Installation

{
    "requires": {
        "behat/mink":               "1.4.*",
        "behat/mink-goutte-driver": "*"
    }
}
curl http://getcomposer.org/installer | php
php composer.phar install

Copyright

Copyright (c) 2012 Konstantin Kudryashov (ever.zet). See LICENSE for details.

Maintainers