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 |
what testing activities u may want to automate in a project?
What are the challenges u faced in testing with crm domain? How u overcome with?
what is the framework followed by ur company in qtp
How do you perform Regreession Testing?
What is the use of environment variables?
What is difference between Quality centre and Test Director?
How to save your test using quicktest professional (qtp)?
what is clean sweep?
What is the difference between link and hyperlink?
Hello! i am having two comboboxes.Each having 10 items in it.when i select first item in first combobox,it is not similar in the second combobox.for ex in first combo if it is Hyderabad,in second it should be some chenai or some other item .Write a VBSCRIPT for that?
the develeper not accepter your defect what status is that ?
How do you use the parameters.input parameters and out put parameters.