Add the table to a form.
Then create a FormTester.
Using formTester set the value of the textfeild autoOne.
Then call formTester.submit();
Use Assertion to test the value.
ayman elwany wrote:
>
> Hi all,
>
> I had this AutoCompleteform.html
>
> <html>
> <body>
> <wicket:panel>
> <td><input type="text" wicket:id="autoOne" size="50" /></td>
> <td><input type="text" wicket:id="autoTwo" size="50" /></td>
> </wicket:panel>
> </body>
> </html>
>
>
> my question : how can i test setting a value in this input textfield
> "autoOne"?
>
> I only started the panel in the wicket tester :
>
> tester.startPanel(new TestPanelSource() {
> public Panel getTestPanel(String panelId) {
> return new AutoCompleteform(panelId, inputMap, employer);
> }
> });
>
>
> but I don't know what to do next?
>
>
--
View this message in context:
http://old.nabble.com/testing-a-wicket-panel-tp27894958p27908457.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]