I'm wondering if anyone of you could know how to test auto-complete textfield using wickettester, I have tried
formTester.setValue("path","");
wicketTester.executeAjaxEvent("path","onchange");
I've tried also:
Component component = wicketTester.getComponentFromLastRenderedPage("path");
component.setDefaultModelObject(ObjectNeeded);
But none of these methods worked for me... Any Help will appreciated! Thanks
I have not tried this with real code, but something resembling this might work:
The
findBehaviorcall actually likely needs to be a longer path, as it's not done byformTester.