I'm using Mink
together with the Zombie Driver to write acceptance Tests. Now I'm trying to make an ajax call, so I'm using the wait($timeout)
method to wait for the response, but it does not work. I'm calling wait like $this->session->wait(20000)
, but when I timed it using the php function time()
, it was apparent that this takes almost nothing time to complete, so I assumed it is a non-blocking call, and it would block, if I tried to access things in $this->session->getPage()
, but that's not true either. I initially had a ($.active === 0)
condition as the second Argument of wait()
, but that didn't work, so I removed the second Argument to isolate the Problem.
Is it necessary to use a spin()
function as in behat's docs, or is the wait()
function enough. If spin()
is necessary then what is wait()
for?
Update
Having installed the phantomjs driver for mink, and seeing that it works, I must conclude that the Problem is with the Zombie Driver.