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

What is the Obect Repository type, we use in Automated Testing..in Real time.. Pls anybody can give the answer.. Thanks in advance...

5 Answers   Navis,


How to get data line by line from web element

2 Answers  


What are all the common questions asked for the candidates having more than 1 yrs exp in QTP?

1 Answers  


Suppose u run ur script today and it is working fine ,nobody has changed the setting and all.u r the owner for the script. But when tomorrow I ran the same script again it got failed and It didn't able to identify one object. Can you tell me what would be the reason for this

4 Answers   L&T,


Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated

2 Answers   McAfee,






What is test object model in quicktest professional (qtp)?

0 Answers  


.mtr ( modular test repository or mercury test repository) plz give correct answer??

3 Answers  


Hi, How to invoke QTP or any application through Command Prompt without using Vb script and batch file.... Reply me Srinivas

3 Answers   Excel,


I learned all the objects of my application in object repository thru English Language. now i want to use same object repository for other languages(French,Dutuch and Chinese)

1 Answers   TCS, Wipro,


what is On Error Resume Next ?

1 Answers   Accenture,


1. What is extense of Result file in QTP?

7 Answers  


unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.

1 Answers  


Categories