Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java HtmlUnit onchange event not fired

I use HtmlUnit to fill form. I have a select SELECT_A. After selecting option the additional elements must appear in the page. But it's not working! I simulate Firefox 3.6.

What do you think?

I tried to use NicelyResynchronizingAjaxController() but it does not help.

like image 652
jamesDev Avatar asked Apr 11 '26 09:04

jamesDev


1 Answers

One note: fireEvent should be called with "change" parameter, not "onchange". Or fireEvent(Event.TYPE_CHANGE); is even better.

like image 162
Gabor Farkas Avatar answered Apr 13 '26 23:04

Gabor Farkas