Hi,
Since Select2 is a JavaScript widget usually in WicketTester tests you just
need to submit a value for it.
FormTester ft = tester.newFormTester("theForm");
ft.setValue("path:to:select2Choice", "selectedOptionValue");
ft.submit();
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Thu, Oct 1, 2015 at 7:44 AM, Lois GreeneHernandez <
[email protected]> wrote:
> Hello All,
>
> My form has a select2choice component. I cannot seem to set this field in
> my testing unit test.
>
> Any advice on how to deal with this would be greatly appreciated.
>
> Thanks
>
> Lois
>
>