You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "John Krasnay (JIRA)" <ji...@apache.org> on 2008/08/28 20:43:44 UTC
[jira] Commented: (WICKET-1808) Implement a simple way to detect
that an AJAX call is outstanding
[ https://issues.apache.org/jira/browse/WICKET-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626689#action_12626689 ]
John Krasnay commented on WICKET-1808:
--------------------------------------
The following appears to work. Render the following script to your page:
wicketAjaxBusy = function() {
for (var c in Wicket.channelManager.channels) {
if (Wicket.channelManager.channels[c].busy) {
Wicket.Log.info("Channel " + c + " is busy");
return true;
}
}
Wicket.Log.info("No channels are busy");
return false;
}
To wait for any AJAX calls to return, invoke the following Selenium API:
selenium.waitForCondition("!selenium.browserbot.getCurrentWindow().wicketAjaxBusy()", "10000");
> Implement a simple way to detect that an AJAX call is outstanding
> -----------------------------------------------------------------
>
> Key: WICKET-1808
> URL: https://issues.apache.org/jira/browse/WICKET-1808
> Project: Wicket
> Issue Type: New Feature
> Components: wicket
> Reporter: John Krasnay
> Priority: Minor
>
> When using an integration testing tool such as Selenium, it would be convenient to be able to detect that an AJAX call is outstanding so that a test script can pause until the call returns.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.