Re: WicketTester#testComponentInPage and executeBehavior

2017-11-20 Thread Rob Audenaerde
Hi Sven, Thanks for replying, The difference is this, in the example you send the component is referenced by its path: tester.executeAjaxEvent("form:select", "inputchange change"); While I reference it by the component: tester.executeAjaxEvent( on, "click" ); I'll try digging in the source

Re: WicketTester#testComponentInPage and executeBehavior

2017-11-20 Thread Rob Audenaerde
Hi Sven, Thanks for replying, The difference is this, in the example you send the component is referenced by its path: On Mon, Nov 20, 2017 at 10:05 PM, Sven Meier wrote: > Hi, > > here's an example usage: > > https://github.com/apache/wicket/blob/master/wicket-core/ >

Re: WicketTester#testComponentInPage and executeBehavior

2017-11-20 Thread Sven Meier
Hi, here's an example usage: https://github.com/apache/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/ajax/form/OnChangeAjaxBehaviorTest.java#L47 Please check what's different in your case. Have fun Sven Am 20.11.2017 um 13:33 schrieb Rob Audenaerde: Hi all, I try to test

WicketTester#testComponentInPage and executeBehavior

2017-11-20 Thread Rob Audenaerde
Hi all, I try to test a AjaxLink-based component using: MyComponent myComponent = new MyComponent("id"); wicketTester.startComponentInPage( myComponent); MyComponent contains some AjaxLinks, I want to click on them by: (uses a visitor to find the first child) AjaxLink on =