Suppose there are 10 browsers opened on desktop. I want to
close all browsers except one browser in QTP. Can any one
give the code for this?

Answer Posted / rico

just made a small correction. Here goes the updated answer



Set browserDesc = Description.Create()
browserDesc(”application version”).Value = “internet
explorer 6"

Set Allbrowsers = DeskTop.ChildObjects(browserDesc)
BrowserCnt = Allbrowsers.Count

For i = 0 To (browserCnt -2)
Allbrowsers(i).Close
Next

Set browserColl = Nothing
Set browserDesc = Nothing

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many ways we can parameterize data in quicktest professional?

653


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1662


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

2992


What is the difference between run time object and test object?

666


How does quicktest professional (qtp) identifies the object in the application?

665






Where can I find and view run-time data table?

611


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1622


explain structured testing? plz guys with exp. do answer

1512


How many add-ins comes by default with quicktest professional (qtp)?

657


How many types of Automation frameworks are there in UFT? Describe them.

642


What is RTM (require ment tracebulity marix) fromate?

1612


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1800


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1966


Which functionalities of QTP used in banking project?

2018


What does it mean when a check point is in red color? What do you do?

646