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 |
In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?
You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?
What is difference between shared and local object repository?
What are the Features & Benefits of Quick Test Pro ?
write script for bitmap image?
If requirments changed then how we can teach the QTP this is the new requirment
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
What is Active Screen in QTP?
can u tell me website address of VBscript with examples.
How many actions we can create with in a test?
what is the difference between DP and keyword driven framework?
what is test scheduleling?