write a script to close all open browser in qtp except one
browser whose name is xyz
Answer Posted / guest
Set odesc=Description.Create
odesc("micclass").Value="Browser"
Set a=Desktop.ChildObjects(odesc)
For i = 0 To a.count-1
t=a(i).GetRoProperty("Title")
print t
If Trim(t)<>"xyz" Then
a(i).Close
End If
Next
--Ganesh
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
If the objects hierarchy is changing from build to build, then how you will handle that condition?
How to add verification steps to tests?
What is debugging? How you debug your script?
Whether qtp 9.0 supports Test director8.0
What is keyword driven framework?
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
What is test object?
what is error and fault in terms of software quality?
What are the types of object repositories? Which one is you using?
Explain how you can delete excel file in qtp?
Explain the differences between table and db checkpoints?
How to add object to object repository in qtp9.0 Suppose for brower yahoo home page
hi nani my doubt is how does qtp process metrix related to software process.
How to creating an output value using quicktest professional?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me