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
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 |
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 |
Tell about descriptive programing in qtp8.2?
how can u find the syntax errors or other script errors in your test during the execution of your QTP Test - (i.e., not after the execution/test run finished, but before finishing the test run)
Difference between copy to action and call to action?
write a qtp script to enter user name & password for flight reservation login page from excel sheet
Can you give me the code to calculate the total number of Links using the child object in the web page..? is there any other way to calculate number of links with out using the Child objects.??
2 Answers DST Global Solutions,
Hello friends..... On which areas of an application we can not test with QTP
0 Answers Thatavarti Technologies,
What is API
In Developer view it is a high priority defect & in tester view it is a low severity defect what is that how to define with an example
How to define array in qtp?
Per-Action Vs Shared repository?
how to compare two excell sheets by using vbscript??
how to pripare BRS/FRS Document for different projects?