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.
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between rational rose and QTP?
What are the advantages of a Hybrid framework?
What will be happen if i load object repository at run time, but it has already associated.
What are table and db checkpoints?
What are the features and benefits of quick test pro (qtp 8.0)?
What is the use of running the scripts in Hidden-mode in UFT?
what is the diffrence bw qtp architectute and qtp framework?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
how to create flat file datasubmission in qtp
What are the types of object repositories? Which one is you are using?
Does QTP run in any environment?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
Where you are storing your script?
what are the limitations of smart identification in qtp 9.0
In qtp, how you can remove the spaces from string?