Micro Focus QTP (UFT) Forums
Handling "Web Radio Group" in QTP 9.0 - 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: Handling "Web Radio Group" in QTP 9.0 (/Thread-Handling-Web-Radio-Group-in-QTP-9-0)



Handling "Web Radio Group" in QTP 9.0 - Abhishek - 07-22-2009

Hi

I am a beginner with QTP. I have problem with selection of record radio button. when i run a test test will struck in selection a perticular record with radio button. Can any one give ideas that how to overcome this problem?


Regards
Abhishek
[attachment=217]


RE: Handling "Web Radio Group" in QTP 9.0 - balakrish - 07-22-2009

Hi Abishek,

check the Object repository radonwarserviceid object is found or not, if it is not found add the objects into object repository

Regards
Bala


RE: Handling "Web Radio Group" in QTP 9.0 - sreekanth chilam - 07-23-2009

Hi Abhishek,

Could you provide the code for selecting the Radiobutton again.
Infact in the above screenshot, due to error message window, code for selecting the Radiobutton is not visible properly.


RE: Handling "Web Radio Group" in QTP 9.0 - Abhishek - 07-23-2009

[attachment=218]


RE: Handling "Web Radio Group" in QTP 9.0 - QTPian - 07-23-2009

Hi Abishek,

The problem is the Selected Value is not exists in the application that is the value "365,27,RAJAHAMSA EXECUTIVE,302,35,9.00,22:30" is wrong. Please record again the particular step and take the exact value or spy the radio button to know the value and change the error value accordingly.

Please let me know of your comments.

Thanks,


RE: Handling "Web Radio Group" in QTP 9.0 - supputuri - 07-23-2009

Hi Abhishek,

It's better option to use the index numbers rather the the value of the radio button.
We have to use the index as follows:
'*******************************************
Browser(X).page(X).WebRadioGroup(X).select "#1"
'*******************************************
Note: Always the index will starts with "0"
Let me know if you need any more info


RE: Handling "Web Radio Group" in QTP 9.0 - QTPian - 07-23-2009

Hi Abishek,

You can also use index numbers as QTPKing said. It is quite simple and solve your query without any confusion.

Hi QTPKing,

I don't know about the selection using index numbers in the past. Thanks for letting me know. I think we can use the index numbers in weblist too.. Please let me know am I right and also what are all the other controls for which we can use index numbers?

Thanks,


RE: Handling "Web Radio Group" in QTP 9.0 - supputuri - 07-23-2009

Hi QTPian,

Thanks and your right, we can use the index while selecting the item from weblist, combo boxes too.

Let me know if i comeacross with any thing else regarding this.