lctrs/mink-panther-driver

This package is abandoned and no longer maintained. No replacement package was suggested.

Panther (WebDriver) driver for Mink framework


README

Integrate Release Renew

Code Coverage Type Coverage

Latest Stable Version Total Downloads

Installation

$ composer require --dev lctrs/mink-panther-driver

Usage

With chromedriver

<?php

use Behat\Mink\Mink;
use Behat\Mink\Session;
use Lctrs\MinkPantherDriver\PantherDriver;

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

With geckodriver

<?php

use Behat\Mink\Mink;
use Behat\Mink\Session;
use Lctrs\MinkPantherDriver\PantherDriver;

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

With Selenium

<?php

use Behat\Mink\Mink;
use Behat\Mink\Session;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Lctrs\MinkPantherDriver\PantherDriver;

$mink = new Mink([
    'panther' => new Session(
        new PantherDriver(PantherDriver::SELENIUM, [
            'host' => 'http://localhost:4444/wd/hub',
            'capabilities' => DesiredCapabilities::chrome(),
        ])
    ),
]);

Documentation

mink-panther-driver is juste a glue betweek Mink and Symfony Panther, see their respective documentations :

Contributing

Please have a look at CONTRIBUTING.md.

License

This package is licensed using the MIT License.

Please have a look at LICENSE.md.