Comments (18)
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.
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.
Which version of ZombieJS is installed on your machine?
from minkzombiedriver.
$ 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.
I am way outdated, node and zombie... let me update!
from minkzombiedriver.
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.
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.
Ok, I'll wait for it :)
from minkzombiedriver.
Update pushed :) Please try again.
from minkzombiedriver.
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.
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.
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.
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.
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.
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.
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.
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.
Closing because of no activity for 2 years.
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.