| || |
how do Get this property???
I am trying to retrieve a property for radio buttons and am having a problem.
I want to dynamically find out the "all items" property for a webradiogroup. Since this property does not exist in Run-time Object details I am out of luck.
The issue is that each radio button is pulled from the database so it as a different value for example, all items = 1;4;8. These would be the names for 3 radio buttons. Each time I run the script I need to select it. I have outerHTML tags that are unique that I use to find the one I need but for me to read the outerHTML tag I need to select the button first.
this is my sample code right now
Set oChild = Browser("Browser").Page("Page").WebRadioGroup("id" )
AllItems = Split(oChild.GetTOProperty("all items"),";")
'the line above is a problem since it only gets TO property, I need Run-time property, I want it to be dynamic and retrieved once the radio buttons are displayed since the all items value keeps changing.
For i =0 To Ubound(AllItems)
testvalue = AllItems(i)
altvalue = oChild.GetROProperty("outerhtml")
If altvalue = "<INPUT onclick=enableButtons(false); type=radio alt=STcategory1 CHECKED value="& testvalue & " name=id>" Then
'dont need to do anything here since the button is selected already
Re: how do Get this property???
Are you saying this doesn't work?:
AllItems = Split(oChild.GetROProperty("all items"),";")
<font color="#6B6B6B">Scott Genevish
Principal Consultant Designed Quality