Micro Focus QTP (UFT) Forums
identifying Webradiobuttons in a web radio group - 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: identifying Webradiobuttons in a web radio group (/Thread-identifying-Webradiobuttons-in-a-web-radio-group)



identifying Webradiobuttons in a web radio group - swayampadhi88 - 02-18-2012

Hi Friends

Please help me out!!!
I am working on an application which has 2 Web radio buttons(yes and no)none of them are selected initially.When I am spying the object it shows it as a webradiogroup with both the buttons with similar properties leaving aside the x and y coordinates. Even the index are same for both.
Both the buttons have same values(#0).
Even when I added the NO Radio button object and after refreshing the page I ran it it highlighted the Yes Radiobutton.

I am developing the regression script in which for each policy number it will pick the value from an excel sheet (whether yes or no ) and will then click either yes or no radiobutton required in the application.




RE: identifying Webradiobuttons in a web radio group - inborntester - 02-18-2012

you can like below.

Code:
Browser("Browser").Page("Page").WebRadioGroup("policynumber").Select("on")

read value from excel and do parametrize on select method. value is case sensitive.