In my c# selenium webdriver tests I occasionally have to make use of:
public void WaitForJQuery(TimeSpan timeout)
{
var wait = new WebDriverWait(driver, timeout);
wait.Until(d => (bool)(d as IJavaScriptExecutor).ExecuteScript("return jQuery.active == 0"));
}
This waits up until the specified 'timeout' for jQuery calls to finish. I was wondering if there was an equivalent I could use for the q.js library?
I'm a tester not a webdesigner and have very little experience with the q library, browsing through the documentation for it I can't see any relevant static properties that might contain the information I desire.