From: David D.K. <ddk...@ki...> - 2005-03-29 04:48:56
|
You need to get a reference to the Java object representing the radio button (DOM object), then call the click() method on it. That should invoke the appropriate JavaScript to mimic what the web browser does. Use the HtmlPage object to get a reference to the appropriate HtmlRadioButtonInput object. Dave On Mar 28, 2005, at 9:53 AM, Sridhar Ranganathan wrote: > Hi, > > I have a Radio button group with 2 buttons. Both have same element ID > and name. But the value changes depending on which button was clicked. > Moreover, the attributes (enable/disable) changes for some elements in > the page depending on which radio button is clicked. > > Right now, I am setting the value attribute for the radio element. > However, by this method, I am not able to refresh the page. What I want > to do is to click the radio button using click() and then I could get > the HtmlPage content to verify the enable/disable for other fields. > > Is there any way I can achieve this ? > > thanks > -- > Sridhar R |