An open API service indexing awesome lists of open source software.

https://github.com/minkphp/minkzombiedriver

Zombie.js driver for Mink framework
https://github.com/minkphp/minkzombiedriver

mink mink-driver php

Last synced: 4 months ago
JSON representation

Zombie.js driver for Mink framework

Awesome Lists containing this project

README

          

Mink Zombie.js Driver
=====================

[![Latest Stable Version](https://poser.pugx.org/behat/mink-zombie-driver/v/stable.svg)](https://packagist.org/packages/behat/mink-zombie-driver)
[![Latest Unstable Version](https://poser.pugx.org/behat/mink-zombie-driver/v/unstable.svg)](https://packagist.org/packages/behat/mink-zombie-driver)
[![Total Downloads](https://poser.pugx.org/behat/mink-zombie-driver/downloads.svg)](https://packagist.org/packages/behat/mink-zombie-driver)
[![CI](https://github.com/minkphp/MinkZombieDriver/actions/workflows/tests.yml/badge.svg)](https://github.com/minkphp/MinkZombieDriver/actions/workflows/tests.yml)
[![License](https://poser.pugx.org/behat/mink-zombie-driver/license.svg)](https://packagist.org/packages/behat/mink-zombie-driver)
[![codecov](https://codecov.io/gh/minkphp/MinkZombieDriver/branch/master/graph/badge.svg?token=q3KjYserBP)](https://codecov.io/gh/minkphp/MinkZombieDriver)

Installation & Compatibility
----------------------------

You need a working installation of [NodeJS](https://nodejs.org/) and
[npm](https://www.npmjs.com/). Install the
[zombie.js](https://zombie.js.org/) library through npm:

``` bash
$ npm install -g zombie
```

The driver requires zombie.js __version 2.0.0 or higher__.

Use [Composer](https://getcomposer.org/) to install all required PHP dependencies:

```bash
$ composer require --dev behat/mink behat/mink-zombie-driver
```

Usage Example
-------------

```php
new Session(new ZombieDriver(new ZombieServer(
$host, $port, $nodeBinary
))),
));

$mink->setDefaultSessionName('zombie');

$session = $mink->getSession();
$session->visit('http://example.org');

$page = $session->getPage();
$elem = $page->find('css', 'h1');

echo $elem->getText();
```

Copyright
---------

Copyright (c) 2011-2012 Pascal Cremer

Maintainers
-----------

* Alexander Obuhovich [aik099](https://github.com/aik099)