I'd like to resurrect this old tread because I ran into this issue again.
Last time I changed my code to use a regular link to submit the form, but
this time the form is on a modal window and has to be submitted with
AjaxSubmitLink.
My current findings are identical to the ones describes in my
I found a way to submit a form with Ajax link in a file attached to Wicket
bug #2783:
tester.executeAjaxEvent(path:to:ajax:link, onclick)
I hope there is a more graceful way to do this.
On Wed, May 19, 2010 at 10:38 AM, Alec Swan alecs...@gmail.com wrote:
I'd like to resurrect this old tread
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?)
Pieter
On Tue, Dec 29, 2009 at 8:43 AM, Kent
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
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
Pieter Degraeuwe wrote:
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
I unsuccessfully tried several different ways to invoke the AjaxSubmitLink
from my test method.
1. formTester.submit(submitButton) does not call
AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form)
2. formTester.submitLink(submitButton, false) fails with
alecswan1 wrote:
So, how do I test AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form
form) method?
You may try using http://wicketpagetest.sourceforge.net/ to test it instead.
It
supports real AJAX.
-
--
Kent Tong
Better way to unit test Wicket pages