Prepare for your Next Interview
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 ...
|
|||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |