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

if anyone has idea of the interview procedure in covansys, plz send me a mail?

0 Answers  


Wt is the difference between Business Component and scripted component?

1 Answers   BSL,


How vl i prioritize the actions when i have 10 actions A1, A2, A3......A10. I want to run action as follows A1,A5,A6 and A10. How i can do it. Thanks in Advance to u.

7 Answers   IBM, Wipro,


what is difference between analog and low level recording

2 Answers   Intel,


what is clean sweep?

0 Answers  






Which property do you use to retrieve or assign data into a cell in a Data Table object?

1 Answers  


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

0 Answers   TCS,


How do you move objects from local object repository to shared object repository???What are methods?

1 Answers  


can u explain about QTP Frameworks? what are the framework types are available? and How to set or create frame work for a application? Explain briefly?(Also give me one example)

1 Answers  


If our application contain one image while executing script application failed to show that image but you have to check that image by importing dynamically from other location... Can we use Check Points here on dynamically imported image?

2 Answers   ADP,


How do u do batch testing in WR & is it possible to do in QTP, if so explain?

4 Answers  


what is meant by iterative model?What is its working principle?What are its advantages and what are its drawbacks?

2 Answers  


Categories