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. |
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 ...
|
|||||||
|
|||
|
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] |
| Sponsored Links |
|
|||
|
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 |
|
|||
|
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. |
![]() |
|
| 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 |