Skip to content
Symfony Panther driver for Mink framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.travis.yml
Dockerfile
LICENSE Initial commit Oct 23, 2018
README.md
composer.json
docker-compose.yml
phpunit.xml.dist Enable SelectTest with some skipped tests Mar 29, 2019
start-project.sh

README.md

MinkPantherDriver

Latest Stable Version Latest Unstable Version Total Downloads Build Status Scrutinizer Quality Score Code Coverage License

Symfony Panther driver for Mink framework

Install

composer req --dev behat/mink robertfausk/mink-panther-driver

Usage Example

<?php

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();

Please refer to MinkExtension-example for an executable example.

Documentation

Since MinkPantherDriver is just glue between Mink and Symfony Panther, it already has an extensive documentation:

How to contribute

Start docker-compose with php web driver

docker-compose up php7.2

Run phpunit tests

docker-compose exec php7.2 vendor/bin/phpunit

Credits

Created by Robert Freigang robertfausk.

MinkPantherDriver is built on top of Panther and for usage with Behat and Mink. It has been inspired by MinkBrowserKitDriver and MinkSelenium2Driver.

You can’t perform that action at this time.