Menu

Cannot select a radio button

Help
2004-02-19
2004-02-19
  • Steve Leach

    Steve Leach - 2004-02-19

    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

     
    • Steve Leach

      Steve Leach - 2004-02-19

      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.

       

Log in to post a comment.