ah, ok. I didn't notice that. Any idea how to that javascript condition should look like in a general way? (Is there some wichet hook available for this?) I'm looking for a generic approach; I don't want to clutter my tests with code like "wait until component contains value x, etc.)
On Tue, Dec 29, 2009 at 2:49 PM, Kent Tong <k...@cpttm.org.mo> wrote: > > > Pieter Degraeuwe wrote: > > > > This seems to be quite useful. > > > > However, do you have a solution to avoit the 'sleep(...)' methods for > ajax > > calls? > > When you have a lot of these tests, your testcyclus will be too long... > > (Maybe there is a way to detect when the ajax calls are ended?) > > > > The call to sleep() method is used to simulate a slow responding method. It > is > not needed at all. The detection is done by selenium.waitForCondition(<some > javascript>). > > ----- > -- > Kent Tong > Better way to unit test Wicket pages ( > http://wicketpagetest.sourceforge.net) > Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org) > -- > View this message in context: > http://old.nabble.com/Re%3A-Testing-AjaxSubmitLink-onSubmit%28%29-with-WicketTester-%40L-tp26947384p26954770.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pieter Degraeuwe Systemworks bvba Belgiƫlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be