PHP code example of famelo / mink-goutte-driver
1. Go to this page and download the library: Download famelo/mink-goutte-driver library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
famelo / mink-goutte-driver example snippets
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(new GoutteClient($startUrl))),
));
$mink->getSession('goutte')->getPage()->findLink('Chat')->click();
bash
curl http://getcomposer.org/installer | php
php composer.phar install