Skip to content

Latest commit

 

History

History
executable file
·
61 lines (45 loc) · 1.17 KB

README.md

File metadata and controls

executable file
·
61 lines (45 loc) · 1.17 KB

Mink Zombie.js Driver

  • Build Status

Usage Example

<?php

use Behat\Mink\Mink,
    Behat\Mink\Session,
    Behat\Mink\Driver\ZombieDriver,
    Behat\Mink\Driver\NodeJS\Server\ZombieServer;

$startUrl = 'http://example.com';

$mink = new Mink(array(
    'zombie' => new Session(new ZombieDriver(new ZombieServer(
        $host, $port, $nodeBinary
    ))),
));

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

Installation

npm install -g [email protected]

(Due to unresolved compatibility issues with newer versions of Zombie.js, we strongly encourage you to not upgrade to a version newer than v0.13.0 for now.)

{
    "require": {
        "behat/mink":               "1.4.*",
        "behat/mink-zombie-driver": "*"
    }
}
curl http://getcomposer.org/installer | php
php composer.phar install

Copyright

Copyright (c) 2012 Pascal Cremer [email protected]

Maintainers