I'm working with Selenium and need to determine if jquery animations have completed before moving on to the next action (click, input etc etc).
I need to do this without altering any existing animation scripts already on the site - so I need to be able to monitor something in JQuery I can iterate over and when any/all animations have stopped, I can carry on.
Something like this would be ideal...
function jqueryWait(){
while(jQuery.animation.queue > 0){
// do nothing - wait
}
// return to selenium
return true;
}