I have a form with radio buttons on it. I have found the radio button I want, and have a reference to it as an HTML element. Now all I want to do is select it.
Unfortunately I can't find a way to do this.
It is of type "RadioButtonFormControl" but this is private so I can't cast it.
There also doesn't seem to be anything in WebForm that lets me select a radio button by ID.
Any help would be appreciated.
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I worked around this by defining a new class in the com.meterware.httpunit package (which could access the RadioButtonFormControl class), and then using that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all
I have a form with radio buttons on it. I have found the radio button I want, and have a reference to it as an HTML element. Now all I want to do is select it.
Unfortunately I can't find a way to do this.
It is of type "RadioButtonFormControl" but this is private so I can't cast it.
There also doesn't seem to be anything in WebForm that lets me select a radio button by ID.
Any help would be appreciated.
Steve
I worked around this by defining a new class in the com.meterware.httpunit package (which could access the RadioButtonFormControl class), and then using that.