Postponed (maintainer needs more info)
Project:
Drupal.org BDD
Version:
7.x-1.x-dev
Component:
Step definitions
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2012 at 19:50 UTC
Updated:
25 Jul 2013 at 04:38 UTC
Comments
Comment #1
pradeeprkara commentedThe spin method will make more sense in cases where Goutte is running. Here we can pass a callback function OR check the status code by default, every second or 2 second until an already specified timeout value is reached and throw a time out exception at the end. As selenium doesn't support the status check method, we still will need to depend on the wait() method which expects a javascript callback or statement to become true. In this case, we cannot write a javascript callback that effectively returns a true status after waiting/holding the execution. The first argument of wait() is a fixed timeout value but I am not sure this is working as expected.
Below is the modified step definition for
I wait until the page is loadedwith the spin method changes for Goutte with readyStatus check for selenium.I have committed the above changes to 7.x : http://drupalcode.org/project/doobie.git/commit/ec0e95e
So we cannot fully depend on the spin method from the lower level but making use of it in the core level would solve the timeout issues, I believe.
I am going to create an issue in Behat/Mink community, specifying the requirement and will update here once done.
Comment #2
pradeeprkara commentedComment #3
eliza411 commentedThank you!
I'm setting this to postponed pending the Behat/Mink issue outcome. Would appreciate a link to the issue here once it's been opened.
Comment #4
pradeeprkara commentedPosted an issue at github.com
https://github.com/Behat/Mink/issues/302
Comment #5
eliza411 commentedThis issue is confirmed but no fix appears to be available yet. Unassigning and setting to need more info until the issue on GitHub is resolved.