Hi
I'm
testing a web using HTTP Unit and I'm getting some problems with the Javascript in that site.
I want to submit a FORM which has 3 elements: one Textfield and two Option-Lists. The Textfield is just plain text and the first OPTION represents the months (01-12). So these two are quite easy to set, with the setParameter() method on form-object.
The problem is the second OPTION-List - which has some nasty Javascript which dynamicaly creates the drop-down values for the years:
for (i = 0; i < 11; i++) {
document.write("<option value='" + year + "'>" + year+ "</option>");
year++;
}
Can anybody tell me how to set this value so I can submit this FORM?