Geeks Talk

Prepare for your Next Interview




Selecting Radio Button

This is a discussion on Selecting Radio Button within the QTP forums, part of the Software Testing category; Hi, I am automating a page which has a list of radio buttons, say 1, each of which has three subradio buttons, say a, b & c.I have to ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-30-2006
Expert Member
 
Join Date: Oct 2006
Posts: 690
Thanks: 0
Thanked 49 Times in 41 Posts
JobHelper is on a distinguished road
Selecting Radio Button

Hi, I am automating a page which has a list of radio buttons, say 1, each of which has three subradio buttons, say a, b & c.I have to click radio button 1 and then click either a, b or c.The radio buttons a,b and c have different values for their properties for radio buttons 1-whatever. egRadio buttons 2's sub-radio buttons a, b,c are different objects than Radio button 1' sub-radio buttons (they have different "values", "html tags", (xy coordinates) etc.I want QTP to do this:If I select radio button 1 and sub-radio button a, I want QTP to remember 'a' generically such as by its 'selected item index' so that when I run my test through parameters I want QTP to ALWAYS select subradio button 'a' no matter if radio button 1, 2 or 4 is chosen.

NOTE : [This question was asked by Sohaib Mirza]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-05-2007
Contributing Member
 
Join Date: Feb 2007
Location: Delhi
Posts: 51
Thanks: 3
Thanked 10 Times in 5 Posts
smganesh is on a distinguished road
Re: Selecting Radio Button

The script should be something like:

Browser("Browser").Page("Page").Frame("Frame").WebRadioGroup("WebRadio").Select "#0"

Where, "#0" is the first radio option

Regards,
Ganesh
Reply With Quote
  #3 (permalink)  
Old 03-05-2007
Contributing Member
 
Join Date: Feb 2007
Location: Madras
Posts: 72
Thanks: 11
Thanked 7 Times in 7 Posts
raghav.kamal is on a distinguished road
Re: Selecting Radio Button

Try using Virtual objects & i dont think that issue wud be reproducible
Reply With Quote
  #4 (permalink)  
Old 04-20-2007
Expert Member
 
Join Date: Apr 2007
Location: Kolkata
Posts: 151
Thanks: 3
Thanked 10 Times in 9 Posts
debleena23 is on a distinguished road
Re: Selecting Radio Button

If this is in the matrix form, you will have to give the index as well as the selected index....
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Validate Print button in webbased application JobHelper QTP 3 07-15-2008 08:31 AM
Test cases for Push Button Srikanth Test Cases 7 05-16-2007 07:32 AM
Browse Button Testcases bharathi_ark Test Cases 1 12-16-2006 07:07 AM
What is Satellite Radio suji Geeks Lounge 0 05-26-2006 09:10 AM


All times are GMT -4. The time now is 05:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved