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
- Host: GitHub
- URL: https://github.com/minkphp/minkzombiedriver
- Owner: minkphp
- Created: 2012-05-29T20:44:51.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T11:40:01.000Z (about 1 year ago)
- Last Synced: 2025-01-04T23:07:00.082Z (about 1 year ago)
- Topics: mink, mink-driver, php
- Language: PHP
- Size: 225 KB
- Stars: 41
- Watchers: 11
- Forks: 49
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Mink Zombie.js Driver
=====================
[](https://packagist.org/packages/behat/mink-zombie-driver)
[](https://packagist.org/packages/behat/mink-zombie-driver)
[](https://packagist.org/packages/behat/mink-zombie-driver)
[](https://github.com/minkphp/MinkZombieDriver/actions/workflows/tests.yml)
[](https://packagist.org/packages/behat/mink-zombie-driver)
[](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)