-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zombie driver does not wait for XHR/triggers #2
Comments
The Could you provide some sample code for me to check? Cheers, |
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. |
Which version of ZombieJS is installed on your machine? |
|
I am way outdated, node and zombie... let me update! |
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. |
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. |
Ok, I'll wait for it :) |
New implementation for ZombieDriver::wait() since newer versions of ZombieJS provide support for timeout / conditional execution while waiting.
Update pushed :) Please try again. |
I am now on zombie 1.3.1. I cannot get my page to load with this ugly error:
|
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? |
I just downgraded to zombie@0.12.15. 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:
|
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 ? |
What is the implementation of your "And I wait" step? And maybe you could work around this issue with 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 :-/ |
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. |
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 :) |
I've made driver compatible with latest Zombie version (2.0-alpha24). Can you please update to |
Closing because of no activity for 2 years. |
I am currently testing some stuffs with XHR requests. Everything is working fine with selenium because I can manually wait for the XHR to end.
Thanks :)
The text was updated successfully, but these errors were encountered: