bump - anyone? I've dug through the online docs, but my gwt-fu is limited at this stage. I'd like to get selenium tests up and running as soon as we start writing code... I can always go digging through the javascript, but strangely, the idea doesn't thrill me :)
- Korny On Fri, Feb 20, 2009 at 9:05 PM, Korny Sietsma <[email protected]> wrote: > 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 > -- Kornelis Sietsma korny at my surname dot com kornys on gmail, twitter, facebook, etc. "Every jumbled pile of person has a thinking part that wonders what the part that isn't thinking isn't thinking of" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
