I can normally fill-in a form using an HtmlUnit and submit it to the server. Fine.
UnfortunateIy I don't know how to fill-in a specific form that refreshes to server depening on values I set on the form. That form seems to refreshes to the server because of some javascript that is triggered when a value is set for a field...
To make a simple example, I have a form with 2 fields, drop-down lists, let's say Country and Region: when I choose a value from field Country, the page automatically refreshes to the server (javascript) and shows the same form with field Region updated with possible values dependent on previous choice for field Country.
Here is an online test page with a form I am talking about: http://web1.ciemme-service.it/html-unit.nsf/form?OpenForm
What I would like to do is: - load the page with the form I have to fill-in (works) - set a value for field Country (works) - wait that page refreshes to the server (done by javascript automatically...) - set a value for field Region - submit the form
Thanks for any help/hints you can give me.