Max Wilson - 2004-09-28

As far as I can tell from the docs and source code, HTTPUnit doesn't support clicking a button if it's not on a form. E.g. I have a (third-party) tab control which shows/hides certain fields depending on which tab is selected, implemented with tables and button.onClick events. It's not on a Form, and while it might be feasible to put it on a form so HTTPUnit can test it, I'm much more comfortable with a general solution since HTML doesn't require buttons/inputs to be on a form.

(I had this same issue with INPUT tags, and for now I'm grabbing them directly from the DOM, but that may or may not always be a good idea.)

So, does HTTPUnit in fact support controls not on a Form? If not, is there any interest in me submitting a patch to make it do so, conditioned on my employer's approval?

Thanks,
Max Wilson

Office of Information Technology
Brigham Young University