Comments (15)
There is no released version of MinkZombieDriver that is compatible with Zombie 2.0+. I can only recommend using dev-master
of both driver and Mink to get it working.
from minkzombiedriver.
thx, now this works
from minkzombiedriver.
@aik099 can you please post the composer configuration for this?
I am using the following composer.json and still getting this notice:
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink": "*@dev",
"behat/mink-goutte-driver": "*",
"behat/mink-extension": "*",
"behat/mink-zombie-driver": "*@dev-master",
"behat/mink-selenium2-driver": "*",
"behat/symfony2-extension": "*"
},
"minimum-stability": "dev",
"config": {
"bin-dir": "bin/"
}
}
[RuntimeException]
Server process has been terminated: (8) [
/tmp/mink_nodejs_servernAu0Ty:24
throw new Error("Your zombie.js version is not compatible with this driver.
^
Error: Your zombie.js version is not compatible with this driver. Please use a version <= 1.4.1
at Object.<anonymous> (/tmp/mink_nodejs_servernAu0Ty:24:9)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
]
from minkzombiedriver.
Fixed this notice by installing the requested version of zombie.js:
npm install -g [email protected]
from minkzombiedriver.
Because of "behat/behat": "2.4.*@stable",
line all other dependencies don't use dev-master
versions, but use latest stable version.
Try changing composer.json
to look like this:
{
"require": {
"behat/behat": "2.4.*@stable",
"behat/mink-extension": "*@dev",
"behat/mink": "*@dev",
"behat/mink-goutte-driver": "*@dev",
"behat/mink-zombie-driver": "*@dev",
"behat/mink-selenium2-driver": "*@dev",
"behat/symfony2-extension": "*"
},
"minimum-stability": "dev",
"config": {
"bin-dir": "bin/"
}
}
from minkzombiedriver.
Is there a way to do it without setting the minimum-stability option to dev? That impacts the whole project. With minimum-stability to stable, nothing is updated even with the "*@dev"
in every driver.
from minkzombiedriver.
There were changes in both driver and Mink itself make it work with latest Zombie. I'm afraid, that driver dev version alone isn't enough. You also should set 1.5@dev
to the behat/mink
in composer.json
.
And @dev
is only adhered in final composer.json (one, that includes mink & drivers).
from minkzombiedriver.
And I don't recommend using *
in version constraint. Also dev-master
as version should do the trick, but that's the same as ~1.2@dev
(for the driver).
from minkzombiedriver.
With
"behat/mink": "1.5@dev", "behat/mink-zombie-driver": "~1.2@dev"
I get
Problem 1 - Can only install one of: behat/mink[v1.5.0, 1.6.x-dev]. - Can only install one of: behat/mink[1.6.x-dev, v1.5.0]. - behat/mink-zombie-driver 1.2.x-dev requires behat/mink ~1.6@dev -> satisfiable by behat/mink[1.6.x-dev]. - Installation request for behat/mink-zombie-driver ~1.2@dev -> satisfiable by behat/mink-zombie-driver[1.2.x-dev]. - Installation request for behat/mink 1.5@dev -> satisfiable by behat/mink[v1.5.0].
from minkzombiedriver.
I see, then try changing behat/mink
version to the ~1.6@dev
. Does that help. I myself have all dev versions, that's why I can't experiment much locally.
from minkzombiedriver.
A problem with the mink extension
Problem 1 - behat/mink-extension v1.1.4 requires behat/mink >=1.4.3,<1.6-dev -> no matching package found. - behat/mink-extension v1.1.4 requires behat/mink >=1.4.3,<1.6-dev -> no matching package found. - Installation request for behat/mink-extension == 1.1.4.0 -> satisfiable by behat/mink-extension[v1.1.4].
The extension is defined like
"behat/mink-extension": "*@dev"
from minkzombiedriver.
Now you see the point of manipulations with versions I hope to choose each package version that will satisfy any other package that is using it. I'll let you continue on your own
from minkzombiedriver.
Sure, the fact is that I'm a bit confused when there are no numbers, so if we define *@dev
, what are we saying exactly? Use the very last commit? And with ~1.2@dev
or 1.2.x-dev
? What are the differences?
from minkzombiedriver.
When we say @dev
then we allow non-released version to kick in. Using branch-alias
(https://getcomposer.org/doc/articles/aliases.md#branch-alias) key in the composer.json
of included package it's possible to alias dev-master
(which is branch named master
) to a particular version (the 1.2.x in this case or 1.2.* if you prefer). Then versions of packages are compared to see what fits.
I recommend reading more about how Composer does that version matching if you're interested.
from minkzombiedriver.
I did it before but maybe too superficial, I'll have a deeper look, thanks :)
from minkzombiedriver.
Related Issues (20)
- Cannot read property 'nodeType' of null HOT 12
- Throw exception, when options are changed on running server HOT 3
- Changing host or port should regenerate server code HOT 2
- The "node_modules" path not validated during server construction HOT 1
- Using "Behat\Mink\Driver\NodeJS\Server::createTemporaryServer" replaces user provided server code HOT 4
- The server should not use a temporary file HOT 2
- The "wait()" does not work, when Zombie has empty event loop HOT 6
- Warning: socket_read(): unable to read from socket [10054]: An existing connection was forcibly closed by the remote host. HOT 10
- How to change timeout? HOT 4
- Zombie Server is still active and listening to port after a Behat exception HOT 2
- Using a local Zombie installation HOT 23
- Unable to run tests for the project HOT 22
- The PHP 7 tests failing on Travis CI HOT 3
- Update README.md with example of setting options HOT 1
- Driver does not work with Symfony 4.0+ HOT 3
- Fails with latest zombie
- Can't find module HOT 7
- Handle non-ascii characters in url
- SinglePageApplication: Javascript is not executed HOT 4
- Tests failing on ppc64le architecture for master and versions v1.4.0,v1.5.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minkzombiedriver.