I am using HtmlUnit to fill out a form. I have a choice SELECT_A. After selecting the option, additional elements should appear on the page. But it does not work! I am modeling Firefox 3.6.
SELECT_A
What do you think?
I tried to use NicelyResynchronizingAjaxController(), but that does not help.
NicelyResynchronizingAjaxController()
One note: fireEvent should be called with a parameter "change", not "onchange". Or fireEvent(Event.TYPE_CHANGE);even better.
"change"
"onchange"
fireEvent(Event.TYPE_CHANGE);
You can use the method fireevent("EventName")and pass the name of the event as a paragraph:
fireevent("EventName")
HtmlSelect fromselect = form.getSelectByName("droplist"); fromselect.fireEvent("onchange");