Hi, Because there is FormTester#submit("buttonId") (for non-Ajax) and BaseWicketTester#executeAjaxEvent(Component, String) (for Ajax). So clickButton() would be tester.executeAjaxEvent(button, "click"). The latter is much more generic and can be used for any kind of Component and any kind of event.
clickLink() is there since early versions and it is hard to remove it now. We don't want #clickButton(), #submitButton(), #blurButton(), #hoverLabel(), etc. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Aug 8, 2017 at 12:37 PM, Kamil Paśko <kamil.pa...@solsoft.pl> wrote: > Dear Wicket Devs, > > > Is there a reason why WicketTester#clickLink(String path) can not handle > AjaxButton ? > > If yes, why there is no "clickButton" method? > > > Kind regards, > > Kamil > >