PHP code example of coreshop / mink-panther-driver

1. Go to this page and download the library: Download coreshop/mink-panther-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/ */

    

coreshop / mink-panther-driver example snippets




use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\PantherDriver;

protected static $defaultOptions = [
     'webServerDir' => __DIR__.'/../../../../public', // the Flex directory structure
     'hostname' => '127.0.0.1',
     'port' => 9080,
     'router' => '',
     'external_base_uri' => null,
 ];

$mink = new Mink(array(
    'panther' => new Session(new PantherDriver('panther', $defaultOptions, [])),
));

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