承接 behat/mink-zombie-driver 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

behat/mink-zombie-driver

最新稳定版本:v1.6.0

Composer 安装命令:

composer require --dev behat/mink-zombie-driver

包简介

Zombie.js driver for Mink framework

README 文档

README

Latest Stable Version Latest Unstable Version Total Downloads CI License codecov

Installation & Compatibility

You need a working installation of NodeJS and npm. Install the zombie.js library through npm:

$ npm install -g zombie

The driver requires zombie.js version 2.0.0 or higher.

Use Composer to install all required PHP dependencies:

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

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/bin/node'; $mink = new Mink(array( 'zombie' => 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 b00gizm@gmail.com

Maintainers

统计信息

  • 总下载量: 2.23M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 44
  • 点击次数: 1
  • 依赖项目数: 20
  • 推荐数: 4

GitHub 信息

  • Stars: 41
  • Watchers: 11
  • Forks: 49
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-03