Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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 click ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 12-30-2006
Expert Member
 
Join Date: Oct 2006
Posts: 689
Thanks: 0
Thanked 53 Times in 44 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 12 Times in 6 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 11 Times in 10 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
  #5 (permalink)  
Old 03-17-2009
Junior Member
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
AY Berelowitz is on a distinguished road
Wink Re: Selecting Radio Button

I have 2 problems with Radio Buttons:

1. Selecting a radio button - sometimes it hangs, sometimes it return nothing or the wrong selection

2. Refreshing a radio button group. If the test is set up to input different values into an input box, and this should change the values on the radio buttons (e.g. differnt shipping charges on different addresses or weight) it appears to not update the selections.

There appears to be a simple solution using DP in
QTP-8.2 | The Software Inquisition

I have not tested it yet.

Last edited by AY Berelowitz; 03-17-2009 at 10:58 AM.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


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 04:52 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved