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:39:44 UTC

[jira] Created: (WICKET-1808) Implement a simple way to detect that an AJAX call is outstanding

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.


[jira] Commented: (WICKET-1808) Implement a simple way to detect that an AJAX call is outstanding

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702907#action_12702907 ] 

Igor Vaynberg commented on WICKET-1808:
---------------------------------------

because you have found a way to implement it?

> 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
>            Assignee: Igor Vaynberg
>            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.


[jira] Commented: (WICKET-1808) Implement a simple way to detect that an AJAX call is outstanding

Posted by "John Krasnay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702908#action_12702908 ] 

John Krasnay commented on WICKET-1808:
--------------------------------------

I was hoping for wicket-ajax to provide such a function, so that my scripts don't have to depend on wicket-ajax internals.

> 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
>            Assignee: Igor Vaynberg
>            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.


[jira] Commented: (WICKET-1808) Implement a simple way to detect that an AJAX call is outstanding

Posted by "John Krasnay (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (WICKET-1808) Implement a simple way to detect that an AJAX call is outstanding

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1808.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

> 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
>            Assignee: Igor Vaynberg
>            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.


[jira] Commented: (WICKET-1808) Implement a simple way to detect that an AJAX call is outstanding

Posted by "John Krasnay (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702877#action_12702877 ] 

John Krasnay commented on WICKET-1808:
--------------------------------------

May I ask why this was marked invalid?

> 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
>            Assignee: Igor Vaynberg
>            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.