Micro Focus QTP (UFT) Forums
How to click a webradiogroup button - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to click a webradiogroup button (/Thread-How-to-click-a-webradiogroup-button)



How to click a webradiogroup button - silpavinod - 10-19-2012

Hi All,

I am having some text and beside that text i am having radio buttons if the text matchs i need to click on radio button ....
Here the prblm is the radio buttons are in webradiogroup... how to click the webradiogroup buttons

Can anyone help me ASAP...


RE: How to click a webradiogroup button - silpavinod - 10-19-2012

I tried to get webtable count frm the below code
Code:
Set odesc=Description.Create
odesc("micclass").value="WebTable"
Set val=Browser("Link Tests_2").Page("Link Tests").ChildObjects(odesc)
msgbox val.count

I got the Count as 1
but after that not able to get the innertext or value...
Code:
a= val.GetROProperty("value")
msgbox a

When i record it is giving as below:
Code:
Browser("Link Tests_3").Page("Link Tests").WebRadioGroup("rdbResp").Select "1"

help me...


RE: How to click a webradiogroup button - vishalu.vs - 01-17-2013

You try changing as below
Code:
a=val.GetROProperty("innertext")
msgbox a

Once you get the value of innertext, you can write the below code
Code:
Browser("Link Tests_2").Page("Link Tests").WebRadioGroup("name:=rdbResp").Select a