Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Hi, When I click on a hyperlink a secondary pop-window will
open. In that pop-up window there will be 'N' number of
records arranged in with paging option in datagrid table.
Each rows contains two columns, one is text and the other
is a radio button. I will pass the first column value and
based in it the tool have to select the corresponding radio
button in that row. Please someone help me how to handle
this as am new to QTP.

Answers were Sorted based on User's Feedback



Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will..

Answer / badri

'To find no of rows in webtable
rc=Browser(" ").Page(" ").WebTable(" ").RowCount
msgbox "No. of Rows: "&rc

'Give the text
b=inputbox("Enter the text u want to search....")
For i= 2 to rc
getdata=Browser(" ").Page(" ").WebTable("
").GetCellData(i,1)
msgbox getdata
If (ucase(trim(b)))=(ucase(trim(getdata))) Then
' msgbox "Both are Equal"
set obj= Browser(" ").Page(" ").WebTable("
").ChildItem(i,1,"webradiobutton",0)
obj.click
Exit for
'Go to next page
browser(" ").page(" ").webtable(" ").Link(" ")
End If
Next


' If wrong correct me

Is This Answer Correct ?    4 Yes 0 No

Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will..

Answer / arpita

Dear Badri,

Could you please let me know what is the use of "Exit for" statement in you code snippet ?

Regards,
Arpita

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

To which environments does a QTP support?

1 Answers   Crea,


cud anybody please tell me the full form's of the extention files that we use in real time---.tsr,.mtr,.qrs

7 Answers   Symphony,


If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?

1 Answers  


How to check the URL using Automation tool QTP

2 Answers  


how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage

2 Answers  


What is the limitations of BVA?

1 Answers   IBM,


in process of project exaplnation the defects are says frequently r not?

1 Answers  


How do you compare the structure of 2 tables in database and check whether they are similar using qtp.

0 Answers  


What contains Data Driven Framework document in qtp?

0 Answers  


What do you do if QTP doesn't recognize object ,what action should be taken

11 Answers   Lehman Brothers,


How to check feasibility of the appliction?in automation testing?

0 Answers   CTS,


Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance

0 Answers  


Categories