Hi folks!

My team are starting working in GWT (migrating parts of an old Dojo-based app)
And while we are looking forward to doing the bulk of our tests in
JUnit, we still want to have high-level specs written in Selenium
(driven from Cucumber, though that's not particularly relevant to my
problem!)

Is there any way, in Javascript, to detect that all GWT asynchronous
activity has completed?  We have hooks for this in Dojo, using code
like:
SeleniumBrowserHelper.getCurrentBrowser().waitForCondition(
  
"selenium.browserbot.getCurrentWindow().dojo.io.XMLHTTPTransport.inFlight.length
== 0;");

And there is a similar technique available for Prototype in the latest
Selenium version.  But I'm not aware of any way to do this in GWT.

Note, I know you can test by waiting for specific responses, or
elements becoming visible, or just putting sleeps in - but these tests
can easily get very slow and fragile and hard to write - really, I
want to be able to write tests like:
* click the element named "foo"
* wait for any responses to be delivered from the server
* assert that the element now has a child called "bar"

Any suggestions?

Thanks,
- Korny

-- 
Kornelis Sietsma  korny at my surname dot com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to