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 output parameters in qtp?explain? 2)

2 Answers   Span Infotech, TCS,


how do u retrieve data from a database ? i.e. i want to retrieve 2nd record only from a database ? write code for this. by using ADODB connecton, RSOBJ and using a FOR loop we can retrieve all the records( ex: if we give query as select * from emp). but i want only 2nd record. so how to acheive this.

2 Answers   Accenture,


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

0 Answers  


Hi ,Can any one pleas explain how to test splash objects using QTP?

0 Answers   Value Labs,


what is Business Process Testing plz explain?

7 Answers   iFlex,


Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??

2 Answers  


How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)

1 Answers  


Which scripting language QTP is using?

6 Answers  


in a web table , i want you to click a particular object inside cell

2 Answers  


how would you go for testing a web application like any jobsite?(using manual n qtp)..pls frnds its very urgent ..i need realtime answers...thanks in advance

2 Answers   Wipro,


how to test one edit box using dotnet addin for Web Applications? write script?

2 Answers   NTT Data,


one page contain next button.when we enter that its not going to next page.what type of error that one.

3 Answers   TCS,


Categories