This will just find all the webradiogroup that is available on page. I need to find all the items listed within a webradiogroup. My approach is that I need to compare the value for each item in the list to see if it matches the value #0033cc, then if it matches, then I will select that particular item based on its index.
Set oChild = Browser(a).Page(b).WebRadioGroup(oDesc)
If oChild.Exist(5) Then
iItemsCount= oChild.GetRoProperty("items count")
For i = 0 to iItemsCount - 1
oChild.Select "#" & i
'If oChild(i).GetROProperty("value") = "#0033CC" Then
Msgbox "RadioGroup doesn't exists or object definition wrong"
End If </pre><hr />
I have a simple solution for this.
You can use web table for this.
We can iterate through web table using row-column combination and can click on desired link against option button.
RadioBtn1 -- ADD
RadioBtn2 -- DIVIDE
RadioBtn3 -- SUBSTRACT
So, when we click on weblement "ADD", radio button against "ADD" ie. "RadioBtn1" will be selected.