Regarding this form...
* I can get the Dom subtree
* I can see the select control and options in the Dom
* I can get the parameter names ("amnt", "person")
* I can see the parameter value of "amnt" - using both getParameterValue() and getParameterValues()
* I can't see the parameter values of "person" !!!
* I can't submit the form using any of the usual mechanisms (submit, submitNoButton, getRequest) !!!
I've spent quite a bit of time on this one now and would gladly try out any suggestions.
I should note that I don't have access to the html source, so that can't be changed...
Thanks,
Fergus
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I've been using httpUnit very successfully for the last number of weeks, but have run into trouble with one particular form.
Here's the html:
[code]
<form action='testpage.php' method='post'>
Select: <select type='dropdown' name='person'>
<option style='color:red;' value='Alice'>Alice (is 1000.0000)
<option style='color:blue;' value='Bob'>Bob (is 2000.0000)
<option style='color:green;' value='Chuck'>Chuck (is 3000.0000)
<option style='color:brown;' value='Dave'>Dave (is 4000.0000)
</select><br />
Amount to add: <input type='text' name='amnt' value='58' /><br />
<input type='submit' value='Addit' /></form>
[/code]
Regarding this form...
* I can get the Dom subtree
* I can see the select control and options in the Dom
* I can get the parameter names ("amnt", "person")
* I can see the parameter value of "amnt" - using both getParameterValue() and getParameterValues()
* I can't see the parameter values of "person" !!!
* I can't submit the form using any of the usual mechanisms (submit, submitNoButton, getRequest) !!!
I've spent quite a bit of time on this one now and would gladly try out any suggestions.
I should note that I don't have access to the html source, so that can't be changed...
Thanks,
Fergus