-
Notifications
You must be signed in to change notification settings - Fork 277
Zombie is throwing syntax error #219
Comments
What is your Zombie and NodeJS version? I'm suspecting that you're using Zombie 4.x version on NodeJS, which won't work. You either need to install Zombie 3.x specifically via |
Hmnn, I am using
Thank you for your help. Appreciate it. |
There were 2 major releases since that version for both Zombie and MinkZombieDriver. I recommend you upgrading at least to Zombie 2. |
We don't support Zombie 1.4. We support Zombie 2, 3 and 4 in the driver |
But theoretically it should be working, because @geraldvillorente is using MinkZombieDriver and Zombie versions that were working together several years ago 😉 |
@aik099 no. this version of the Zombie driver was not working properly (which is why we rewrote it almost entirely for Zombie 2) |
This was long time ago. I already forgot about these dark times. Maybe we can mention supported Zombie versions or better yet not supported ones on driver repo homepage? |
We already document it: https://github.com/minkphp/MinkZombieDriver#installation--compatibility and 1.1.0 of the driver is very old |
Good to know. The problem is, that people report driver specific issues to Mink and MinkExtension repos instead of corresponding driver repos even though contribution docs clearly say where issues should be reported. |
@stof and @aik099 I updated Zombie to 4.1.0 and re ran my test but I got a new error. Please see below.
|
@geraldvillorente AFAIK, Zombie 4 requires node 3+ |
@aik099 Apology if this a not the correct channel to report this problem. |
That's what I've already mentioned above. Please use Zombie 3.x |
Will install Zombie 3 and report the result asap. Thanks guys. |
Just followed your advice and I am running Zombie 3.1.1 and here is the new error. Thank you for your patience.
|
@geraldvillorente use the maintained version of the driver too, not the several years old 1.1.0 version. |
@stof Thank you. I setup a plain vanilla environment and everything is working fine.
The error is only happening on an existing project which is using Behat 2 and Selenium. So what I am doing right now is replacing Selenium with Zombie and this is where the pain came in. Due to versions incompatibility and my lack of knowledge (newbie) in this technology I am now playing in the dark trying to figure out how to make this Zombie works. Thank you for your patience. |
@geraldvillorente latest Mink versions are compatible with Behat 2 too. But you were using a very old version of Mink |
@aik099 Is this problem still exists .. I am facing this "Error while processing event 'click': "SyntaxError: Unexpected token u\n at Object.parse (native)\n " |
What if you clone https://github.com/minkphp/MinkZombieDriver repo and run tests in it? If tests will pass, then probably combination of page HTML and executed commands in the driver uncover some edge case not covered in test suite. In that case please provide:
|
Behat newbie here. Started Behat 2 days ago and I am working on using Zombie which I am having trouble to make it work.
Here is my feature:
Some details about my environment:
behat.yml
The text was updated successfully, but these errors were encountered: