This repository was archived by the owner on Jan 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +43
-11
lines changed
src/Behat/Mink/Driver/NodeJS/Server Expand file tree Collapse file tree 3 files changed +43
-11
lines changed Original file line number Diff line number Diff line change 1+ 1.2.0 / 2014-09-26
2+ ==================
3+
4+ BC break:
5+
6+ * Rewrote the driver based on Zombie 2.0 rather than the old 1.x versions
7+ * Changed the behavior of ` getValue ` for checkboxes according to the BC break in Mink 1.6
8+
9+ New features:
10+
11+ * Added the support of select elements in ` setValue `
12+ * Implemented ` getOuterHtml `
13+ * Added support for request headers
14+ * Implemented ` submitForm `
15+ * Implemented ` isSelected `
16+
17+ Bug fixes:
18+
19+ * Fixed the selection of options for multiple selects to ensure the change event is triggered only once
20+ * Fixed the selection of options for radio groups
21+ * Fixed ` getValue ` for radio groups
22+ * Fixed the retrieval of response headers
23+ * Fixed a leak of outdated references in the node server when changing page
24+ * Fixed the resetting of the driver to reset everything
25+ * Fixed the code to throw exceptions for invalid usages of the driver
26+ * Fixed handling of errors to throw exceptions in the driver rather than crashing the node server
27+ * Fixed ` evaluateScript ` and ` executeScript ` to support all syntaxes required by the Mink API
28+ * Fixed ` getContent ` to return the source of the page without decoding entities
29+ * Fixed the removal of cookies
30+ * Fixed the basic auth implementation
31+
32+ Testing:
33+
34+ * Updated the testsuite to use the new Mink 1.6 driver testsuite
35+ * Added testing on HHVM
Original file line number Diff line number Diff line change @@ -20,31 +20,28 @@ You need a working installation of [NodeJS](http://nodejs.org/) and
2020npm install -g zombie
2121```
2222
23- There are some compatibility issues with older versions of zombie.js.
24- Some are more or less PHP specific and kinda hard to resolve. If you
25- want to be 100% on the safe side, please use __ version 2.0.0-alpha1 or
26- higher__ .
23+ The driver requires zombie.js __ version 2.0.0 or higher__ .
2724
2825Use [ Composer] ( https://getcomposer.org/ ) to install all required PHP dependencies:
2926
30- ``` json
27+ ``` json
3128{
3229 "require" : {
33- "behat/mink" : " ~1.5 " ,
34- "behat/mink-zombie-driver" : " ~1.1 "
30+ "behat/mink" : " ~1.6 " ,
31+ "behat/mink-zombie-driver" : " ~1.2 "
3532 }
3633}
3734```
3835
39- ``` bash
36+ ``` bash
4037$> curl -sS https://getcomposer.org/installer | php
4138$> php composer.phar install
4239```
4340
4441Usage Example
4542-------------
4643
47- ``` php
44+ ``` php
4845<?php
4946
5047use Behat\Mink\Mink,
Original file line number Diff line number Diff line change @@ -159,8 +159,8 @@ protected function getServerScript()
159159 return version_compare(require('%modules_path%zombie/package').version, v2, op);
160160};
161161
162- if (false == zombieVersionCompare('2.0.0alpha1 ', '>=')) {
163- throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0alpha1 ");
162+ if (false == zombieVersionCompare('2.0.0 ', '>=')) {
163+ throw new Error("Your zombie.js version is not compatible with this driver. Please use a version >= 2.0.0 ");
164164}
165165
166166net.createServer(function (stream) {
You can’t perform that action at this time.
0 commit comments