Hi, I try to test auto complete feature implemented with DefaultCssAutoCompleteTextField. I'm able to call it from a test using WicketTesterHelper.findBehavior:
AbstractAutoCompleteBehavior behavior = (AbstractAutoCompleteBehavior) WicketTesterHelper.findBehavior(tester.getComponentFromLastRenderedPage("component"), AbstractAutoCompleteBehavior.class); tester.executeBehavior(behavior); but I don't know how to pass a value entered into a text field (behavior always gets null as an input). I tried to get TextField using tester.getComponentFromLastRenderedPage() and set a value on model, but it doesn't reflect on a value visible by java script. I was using FormTester and setValue(), but also without any positive effect. I'm not able to set a value in an input, which would be visible by a java script and later pass to a server side in a request. Maybe there is some easier way using WicketTester? How can I do it? I'm using Wicket 6.0.0. Regards Marcin -- http://blog.solidsoft.info/ - Working code is not enough --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org