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 |
To which environments does a QTP support?
cud anybody please tell me the full form's of the extention files that we use in real time---.tsr,.mtr,.qrs
If an application name is changes frequently i.e while recording it has name, in this case how does QTP handles?
How to check the URL using Automation tool QTP
how to write code for to select all the checkboxs in the gmail i wrote code for my question but it didn't works any body suggest what wrong my code my code is Set chkboxDesc=Description.Create() chkboxDesc("type").value="chekbox" Set chboxcollection=Browser("name:=Gmail .*").Page("title:=Gmail .*").ChildObjects(chkboxDesc) For i=0 To chboxcollection.count-1 chboxcollection(i).set "ON" Next i was getting general run time error pls help me i am in learing stage
What is the limitations of BVA?
in process of project exaplnation the defects are says frequently r not?
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
What contains Data Driven Framework document in qtp?
What do you do if QTP doesn't recognize object ,what action should be taken
How to check feasibility of the appliction?in automation testing?
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance