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
How do I get the QTP scripts result in xml format by using vb script function?
when will you do debug your script? and explain that process?
How would you directly trigger javascript in a test?
How many types of recording modes in qtp? Describe each type with an example where we use them?
in qtp 3 sheets is there in data table like global, action1, action2. I want to check the rows and columns in action2. how can check using script?
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
How do we handle run-time errors?
What is QTP’s model for test creation?
How to test fly out menu in qtp?
what QTP Options do you know?
What are the different properties of an web object
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
Explain the use of action split in qtp?
can anyone tell me what to say in interview when interviewer asks about "tell me about your framework in your project"?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))