Last post Jan 07, 2011 09:15 PM by farmas
Dec 29, 2010 03:18 PM|jmarmet|LINK
I need to select a radio button, but when I use Click(), it doesn't get checked. My code is:
Dim p as new HtmlPage("BloodPressureDemographicV100P01.aspx")
The element exists on the page, but it never gets selected. I also tried HtmlElement.DispatchEvent(New HtmlMouseEvent("click")), but it doesn't work, either.
Can anyone help?
Dec 29, 2010 08:02 PM|jmarmet|LINK
After some hair pulling, I realized that an ASP.NET RadioButtonList renders as a span with a radio button element and a label element inside it. The solution, using the code above, is to do this:
Jan 07, 2011 09:15 PM|farmas|LINK
Sorry for the late reply... Glad you got it working. :)