Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Zombie.js driver for Mink framework
PHP
branch: master

This branch is 158 commits behind minkphp:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/Behat/Mink/Driver
tests
.gitignore
.travis.yml
README.md
composer.json
phpunit.xml.dist

README.md

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;

$host = '127.0.0.1';
$port = '8124';
$nodeBinary = '/usr/local/Cellar/node/0.8.14/bin/node';

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

$mink->setDefaultSessionName('zombie');

$session = $mink->getSession();

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

$session->visit($startUrl);

$page = $session->getPage();

$el = $page->find('css', 'h1');

echo $el->getText();

Installation

npm install -g zombie@0.12.15

(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 b00gizm@gmail.com

Maintainers

Something went wrong with that request. Please try again.