Coder Social home page Coder Social logo

Comments (18)

b00gizm avatar b00gizm commented on July 30, 2024

The ZombieDriver::wait() method triggers Zombie.JS' browser.wait() method which should fire a callback after every resource is loaded and every XHR request is completed.

Could you provide some sample code for me to check?

Cheers,
Pascal

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

Providing an example would not be easy, but I could provide one soon.

Currently, calling wait does not change a thing... And if I reproduce the same test on selenium driver, the XHR goes correctly... So my guess it must come from zombie.

from minkzombiedriver.

b00gizm avatar b00gizm commented on July 30, 2024

Which version of ZombieJS is installed on your machine?

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024
$ npm list -g
/usr/local/lib
├── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
└─┬ [email protected]
  ├── [email protected] 
  ├─┬ [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ └── [email protected] 
  ├── [email protected] 
  └─┬ [email protected] 
    ├── [email protected] 
    ├── [email protected] 
    └── [email protected]

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

I am way outdated, node and zombie... let me update!

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

Ok, I am with zombie 1.3.1. But now it looks like my javascript files are not fetched. I had matched routes in my logs before, and not anymore.

from minkzombiedriver.

b00gizm avatar b00gizm commented on July 30, 2024

For now, please stick with ZombieJS 0.12.x

There are some compatibility problems with newer versions, but I didn't find time yet to investigate.

I'll push a fix for the wait method in a couple of minutes :) Stay tuned.

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

Ok, I'll wait for it :)

from minkzombiedriver.

b00gizm avatar b00gizm commented on July 30, 2024

Update pushed :) Please try again.

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

I am now on zombie 1.3.1. I cannot get my page to load with this ugly error:

exception 'Behat\Mink\Exception\DriverException' with message 'Could not load resource for URL 'http://localhost/app_test.php/fr/category/smartphones'' in vendor/behat/mink-zombie-driver/src/Behat/Mink/Driver/ZombieDriver.php:174

from minkzombiedriver.

b00gizm avatar b00gizm commented on July 30, 2024

Like I said: Please downgrade to ZombieJS 0.12.x since there are some BC issues with newer versions.

But besides, it seems like it can not load the given URL. Are you sure it is correct? Can you access it in your browser?

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

I just downgraded to [email protected]. And my page loads again (btw it always ran with selenium).

XHR are not successfully executed, because I don't have any trace in my test.log file. Here is my scenario:

Scenario: I can fill compare basket
    When I am on "/fr/category/smartphones"
     And I follow "Comparer"
     And I wait
    Then the url should match "/fr/category/smartphones"
     And I should see "iPhone" in the ".basket" element

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

I looks like I am a victim of this issue: assaf/zombie#181.

So I whould need to upgrade zombie after all.

@b00gizm what do you think ?

from minkzombiedriver.

b00gizm avatar b00gizm commented on July 30, 2024

What is the implementation of your "And I wait" step?

And maybe you could work around this issue with ZombieDriver::triggerBrowserEvent()?

I'm sorry, but the investigation of the issues I ran into with ZombieJS >= 0.13.0 will take some time, I think. I definitely wanted to look into it this weeks, but I can't promise :-/

from minkzombiedriver.

b00gizm avatar b00gizm commented on July 30, 2024

Since I don't know the code for your site, I fear that I'm not able to help you at the moment :(

But I would appreciate, if you could provide a PR with a failing unit test for this case, so I could look into this issue.

from minkzombiedriver.

michelsalib avatar michelsalib commented on July 30, 2024

My implementation: $this->getSession()->wait(5000);

I wont go further with the triggerBrowserEvent method as long as I am running late on other issues and it really looks like an issue of zombie.

I think we mostly need to make the driver compatible with the last version of zombie. If you need any help for review or test purpose don't hesitate :)

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

I've made driver compatible with latest Zombie version (2.0-alpha24). Can you please update to @dev versions of both Mink and MinkZombieDriver and test all things work now on your side?

from minkzombiedriver.

aik099 avatar aik099 commented on July 30, 2024

Closing because of no activity for 2 years.

from minkzombiedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.