Micro Focus QTP (UFT) Forums
Radio Group problem - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Radio Group problem (/Thread-Radio-Group-problem)



Radio Group problem - vinod123 - 11-15-2011

Smile

Code:
set oMyObj = Description.Create
oMyObj("micclass").Value = "WebRadioGroup"
'Set myList = Browser("micclass:=Browser").Page("micclass:=Page").ChildObjects(oMyObj)
Set myList = Browser("Hot Remit").Page("Hot Remit").Link("User Types").ChildObjects(oMyObj)
Msgbox myList.Count
For i = 0 to myList.Count-1
     Browser("Hot Remit").Page("Hot Remit").WebRadioGroup("pid").Select "4"
     intItemsCount = myList(i).GetROProperty("items count")
     Msgbox intItemsCount
Next

as the link contains 4 webradiobuttons but it is displaying as 0 what is the reason which i couldn't find out


RE: Radio Group problem - ravi.gajul - 11-15-2011

I doubt if radiobuttons are childitems of link? Could you post the objectspy snapshot for any radio button.


RE: Radio Group problem - vinod123 - 11-15-2011

just check the attachment which i uploaded is of the object spy checking the properties of the radiogroup


RE: Radio Group problem - ravi.gajul - 11-15-2011

Try this,
Code:
Browser("name:=Hot Remit").Page("title:=Hot Remit").WebRadioGroup("id:=menu1").select "1"

Regards,
Ravi


RE: Radio Group problem - vinod123 - 09-25-2014

thank you for the reply it helped to sort out my problem which i am facing for years