Awesome Open Source
Awesome Open Source

Mink Selenium2 (webdriver) Driver

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

Usage Example


use Behat\Mink\Mink,

use Selenium\Client as SeleniumClient;

$browser = 'firefox';
$url = '';

$mink = new Mink(array(
    'selenium2' => new Session(new Selenium2Driver($browser, null, $url)),


Please refer to MinkExtension-example for an executable example.


    "require": {
        "behat/mink":                   "~1.5",
        "behat/mink-selenium2-driver":  "~1.1"
$> curl -sS | php
$> php composer.phar install


  1. Start WebDriver
    1. If you have Docker installed, run
    docker run -p 4444:4444 selenium/standalone-firefox:2.53.1
    1. If you do not have Docker, but you have Java
    curl -L > selenium-server-standalone-2.53.1.jar
    java -jar selenium-server-standalone-2.53.1.jar
  2. Start WebServer by running
  3. Start PhpUnit
    composer require --dev phpunit/phpunit
    ./vendor/bin/phpunit -v --coverage-clover=coverage.clover


Copyright (c) 2012 Pete Otaqui [email protected].


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (402,785
Selenium (2,955
Webdriver (519
Related Projects